feat: Adds a command to setup the restic repository in s3

This commit is contained in:
2025-11-05 16:21:31 +01:00
parent 119787ed39
commit cd89800fd4
2 changed files with 15 additions and 3 deletions

View File

@ -8,3 +8,7 @@ run_cron () {
while [ ! -f /tmp/backup.log ]; do sleep 1; done
echo "$schedule $(crontab -l | tr -s " " | cut -d ' ' -f6-)" | crontab -
}
setup_restic_s3() {
AWS_SECRET_ACCESS_KEY=$(cat /run/secrets/aws_secret_access_key) restic -r $RESTIC_REPOSITORY init
}