Browse Source

restic args and folder to include

Toastie 1 year ago
parent
commit
c43348c681
2 changed files with 4 additions and 3 deletions
  1. 2 1
      restic/.env.template
  2. 2 2
      restic/data/restic/run.sh

+ 2 - 1
restic/.env.template

@@ -1,8 +1,9 @@
 BACKUP_SOURCE=/home
+BACKUP_FOLDERS=/mnt/source/john /mnt/source/jane
+RESTIC_ARGS=--limit-upload 244 --limit-download 244
 RESTIC_FORGET_ARGS=--keep-weekly 2 --prune
 AWS_ACCESS_KEY_ID=example-TwelveChar
 AWS_SECRET_ACCESS_KEY=30RandomAlphaNumericCharacters
 RESTIC_PASSWORD=AnotherSetOf30RandomCharacters
 RESTIC_REPOSITORY=s3:https://example.ulm-store.de/mybackup
 TZ=Europe/Berlin
-

+ 2 - 2
restic/data/restic/run.sh

@@ -5,7 +5,7 @@ restic snapshots &>/dev/null || restic init
 
 # Run backup job, using parameters from AWS_ACCESS_KEY_ID,
 # AWS_SECRET_ACCESS_KEY, RESTIC_PASSWORD, RESTIC_REPOSITORY
-restic backup /mnt/source
+restic backup $RESTIC_ARGS $BACKUP_FOLDERS
 
 # Cleanup old backups
-restic forget ${RESTIC_FORGET_ARGS}
+restic forget $RESTIC_FORGET_ARGS