From 1d1145296d7145447c20aea8c986a942ef68b7e9 Mon Sep 17 00:00:00 2001 From: Erik Westrup Date: Sat, 4 Dec 2021 18:38:34 +0100 Subject: [PATCH] Add comment explaining dynamic backup path Fixes #42 --- usr/local/sbin/restic_backup.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/usr/local/sbin/restic_backup.sh b/usr/local/sbin/restic_backup.sh index 885427e..901ea92 100644 --- a/usr/local/sbin/restic_backup.sh +++ b/usr/local/sbin/restic_backup.sh @@ -23,7 +23,10 @@ RETENTION_YEARS=3 # What to backup, and what to not BACKUP_PATHS="/ /boot /home" +# Example below of how dynamically add a path that is mounted e.g. external USB dis. [ -d /mnt/media ] && BACKUP_PATHS+=" /mnt/media" + +# Set up exclude files: global + path-specific ones. BACKUP_EXCLUDES="--exclude-file /etc/restic/backup_exclude" for dir in /home/* do