From 8af4753c860baf3d2a7eb278fd4c2918a46389c3 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Sat, 18 Aug 2018 19:12:31 -0700 Subject: [PATCH] Fix quotes on backup path and remove full sched --- Readme.md | 1 - backup.sh | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Readme.md b/Readme.md index de59cac..28cb009 100644 --- a/Readme.md +++ b/Readme.md @@ -15,7 +15,6 @@ Mount any directories you'd like to back up as a volume and run |BACKUP_DEST|/backups|Destination to store backups (See [restic documenation](https://restic.readthedocs.io/en/latest/030_preparing_a_new_repo.html))| |CLEANUP_COMMAND| |Optional restic arguments for `forget` to execute after backups to clean older ones out (eg. "--prune --keep-last 2"). See [forget](https://restic.readthedocs.io/en/latest/060_forget.html)| |CRON_SCHEDULE| |If you want to periodic incremental backups on a schedule, provide it here. By default we just backup once and exit| -|FULL_CRON_SCHEDULE| |If you want to periodic full backups on a schedule, provide it here. This requires an incremental cron schedule too| |OPT_ARGUMENTS| |Any additional arguments to provide to the restic command| |RESTIC_PASSWORD| |Passphrase to use for encryption| |PATH_TO_BACKUP|/data|The path to the directory you wish to backup| diff --git a/backup.sh b/backup.sh index adf7ab7..1b80f81 100755 --- a/backup.sh +++ b/backup.sh @@ -5,7 +5,7 @@ restic \ -r $BACKUP_DEST \ $OPT_ARGUMENTS \ backup \ - $PATH_TO_BACKUP + "$PATH_TO_BACKUP" if [ -n "$CLEANUP_COMMAND" ]; then restic \