Correctly locate exclude file in backup script

This commit is contained in:
Anthony Wang 2022-05-24 14:57:18 -05:00
parent d091e5778d
commit 2ff3da5c03
Signed by: a
GPG key ID: BC96B00AEC5F2D76

2
backup
View file

@ -17,7 +17,7 @@ fi
# Do the backup as non-intrusively as possible.
echo "Indexing ${name}..."
nice -n19 ionice -c3 bup index -vv --exclude-rx-from=exclude /etc /var /srv /home/ta180m
nice -n19 ionice -c3 bup index -vv --exclude-rx-from=$(dirname "$0")/exclude /etc /var /srv /home/ta180m
echo "Backing up ${name} to '${repository}'..."
nice -n19 ionice -c3 bup save -vv --name="${name}" --compress=9 /