diff --git a/backup.env.sample b/backup.env.sample index 3aeda23..b4fdbf5 100644 --- a/backup.env.sample +++ b/backup.env.sample @@ -1,5 +1,16 @@ #!/usr/bin/env bash +## BACKUP_PATH is a list of paths to backup, seperated by a space. +## If there is a spaces in your path (shame on you), escape them first. +## Like this: +# BACKUP_PATH="/home/use/first\ path\ with\ spaces /home/user/second_path /home/user/third_path" +# BACKUP_PATH="/home/user/just_one_path" +## In the sample only /home is being backed up. +BACKUP_PATH="/home" + +## Backup exclude is a file containing paths that should be backed up, like pseudo filesystems. +BACKUP_EXCLUDE="backup_exclude.txt.sample" + ## Setup Path and file for logging LOGPATH="/var/log/borg" diff --git a/backup_exclude.txt b/backup_exclude.txt.sample similarity index 100% rename from backup_exclude.txt rename to backup_exclude.txt.sample diff --git a/make_backup.sh b/make_backup.sh index d58d2f4..c3b6d35 100755 --- a/make_backup.sh +++ b/make_backup.sh @@ -33,9 +33,9 @@ fi echo "######## Backup started at $(date) ########" borg create -v --stats \ - --exclude-from backup_exclude.txt \ + --exclude-from $BACKUP_EXCLUDE \ $REPOSITORY::$BACKUP_NAME \ - /home/adam/docker + $BACKUP_PATH echo "######### Backup Finished $(date) #########"