Merge pull request #18 from toddejohnson/missing-dir
Fix missing directories on install
This commit is contained in:
@@ -22,8 +22,17 @@ RETENTION_MONTHS=18
|
|||||||
RETENTION_YEARS=3
|
RETENTION_YEARS=3
|
||||||
|
|
||||||
# What to backup, and what to not
|
# What to backup, and what to not
|
||||||
BACKUP_PATHS="/ /boot /home /mnt/media"
|
BACKUP_PATHS="/ /boot /home"
|
||||||
BACKUP_EXCLUDES="--exclude-file /etc/restic/backup_exclude --exclude-file /mnt/media/.backup_exclude --exclude-file /home/erikw/.backup_exclude"
|
[ -d /mnt/media ] && BACKUP_PATHS+=" /mnt/media"
|
||||||
|
BACKUP_EXCLUDES="--exclude-file /etc/restic/backup_exclude"
|
||||||
|
for dir in /home/*
|
||||||
|
do
|
||||||
|
if [ -f "$dir/.backup_exclude" ]
|
||||||
|
then
|
||||||
|
BACKUP_EXCLUDES+=" --exclude-file $dir/.backup_exclude"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
BACKUP_TAG=systemd.timer
|
BACKUP_TAG=systemd.timer
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user