Update backup script to use wrapped restic

This commit is contained in:
Kevin Kandlbinder 2023-05-25 15:58:15 +02:00
parent bd61f4dc2b
commit 16e2943397
Signed by: kevin
GPG key ID: 1460B586646E180D

View file

@ -8,7 +8,7 @@ export RESTIC_PASSWORD_FILE=/var/run/secrets/restic/password
export AWS_ACCESS_KEY_ID="$(cat /var/run/secrets/restic/aws_id)"
export AWS_SECRET_ACCESS_KEY="$(cat /var/run/secrets/restic/aws_secret)"
restic backup --iexclude-file ./backup-iexclude.list --exclude-file ./backup-exclude.list --files-from ./backup.list --exclude-if-present ".nobackup" --exclude-if-present ".git" --exclude-if-present ".nextcloudsync.log" --exclude-if-present ".owncloudsync.log" --tag nixos
restic forget --prune --keep-last 10 --keep-daily 14 --keep-weekly 10 --keep-monthly 24 --keep-yearly 100
/run/wrappers/bin/restic backup --iexclude-file ./backup-iexclude.list --exclude-file ./backup-exclude.list --files-from ./backup.list --exclude-if-present ".nobackup" --exclude-if-present ".git" --exclude-if-present ".nextcloudsync.log" --exclude-if-present ".owncloudsync.log" --tag nixos
/run/wrappers/bin/restic forget --prune --keep-last 10 --keep-daily 14 --keep-weekly 10 --keep-monthly 24 --keep-yearly 100
popd