aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2021-12-25 12:09:00 +0800
committerGuangxiong Lin <[email protected]>2021-12-25 12:09:00 +0800
commitd591eda5614315ba7d215e46401617bf33f332ba (patch)
treeba608b291996f33bd3b9b197ed3af1a27513afc3 /scripts
parent6414cb5784f3d862938c27c62ab00cc368133775 (diff)
downloaddotfiles-d591eda5614315ba7d215e46401617bf33f332ba.tar.gz
dotfiles-d591eda5614315ba7d215e46401617bf33f332ba.tar.bz2
dotfiles-d591eda5614315ba7d215e46401617bf33f332ba.zip
Update backup scripts
Diffstat (limited to 'scripts')
-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/"