diff options
author | Guangxiong Lin <[email protected]> | 2021-12-25 12:09:00 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2021-12-25 12:09:00 +0800 |
commit | d591eda5614315ba7d215e46401617bf33f332ba (patch) | |
tree | ba608b291996f33bd3b9b197ed3af1a27513afc3 /scripts | |
parent | 6414cb5784f3d862938c27c62ab00cc368133775 (diff) | |
download | dotfiles-d591eda5614315ba7d215e46401617bf33f332ba.tar.gz dotfiles-d591eda5614315ba7d215e46401617bf33f332ba.tar.bz2 dotfiles-d591eda5614315ba7d215e46401617bf33f332ba.zip |
Update backup scripts
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/backup.sh | 4 |
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/" |