#!/bin/bash export RESTIC_PASSWORD="benEatsBananas!" # backup /home/wettsten export RESTIC_REPOSITORY="sftp:root@resticsftp:/mnt/data/backups/resticbackups/changemepls/home/wettsten" restic unlock restic backup /home/wettsten --no-cache -v restic unlock restic forget --keep-last 25 --prune # backup /etc export RESTIC_REPOSITORY="sftp:root@resticsftp:/mnt/data/backups/resticbackups/changemepls/etc" restic unlock restic backup /etc --no-cache -v restic unlock restic forget --keep-last 25 --prune # backup /opt export RESTIC_REPOSITORY="sftp:root@resticsftp:/mnt/data/backups/resticbackups/changemepls/opt" restic unlock restic backup /opt --no-cache -v restic unlock restic forget --keep-last 25 --prune # backup /root export RESTIC_REPOSITORY="sftp:root@resticsftp:/mnt/data/backups/resticbackups/changemepls/root" restic unlock restic backup /root --no-cache -v restic unlock restic forget --keep-last 25 --prune