aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/backup.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/backup.sh b/scripts/backup.sh
index eca16da..ec595ed 100755
--- a/scripts/backup.sh
+++ b/scripts/backup.sh
@@ -3,8 +3,10 @@
# Delete old snapshots
find "/snapshots/$USER" -maxdepth 1 -mtime +120 -type d -execdir rm -rf {} +
+exclude_file="$HOME/.backup-exclude-list.txt"
+
OPT="-aPh"
-EXCLUDE="--exclude-from=$HOME/.backup-exclude-list.txt"
+EXCLUDE="--exclude-from=$exclude_file"
LINK="--link-dest=/snapshots/$USER/latest"
SRC="/home/$USER/"
SNAP="/snapshots/$USER/"