From d591eda5614315ba7d215e46401617bf33f332ba Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sat, 25 Dec 2021 12:09:00 +0800 Subject: Update backup scripts --- scripts/backup.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts') 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/" -- cgit v1.2.3