diff options
Diffstat (limited to 'scripts/backup.sh')
-rwxr-xr-x | scripts/backup.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/backup.sh b/scripts/backup.sh index ec595ed..ebb7e21 100755 --- a/scripts/backup.sh +++ b/scripts/backup.sh @@ -3,14 +3,14 @@ # Delete old snapshots find "/snapshots/$USER" -maxdepth 1 -mtime +120 -type d -execdir rm -rf {} + -exclude_file="$HOME/.backup-exclude-list.txt" +exclude_file="$HOME/backup.exclude" OPT="-aPh" EXCLUDE="--exclude-from=$exclude_file" -LINK="--link-dest=/snapshots/$USER/latest" +LATEST="/snapshots/$USER/latest" +LINK="--link-dest=$LATEST" SRC="/home/$USER/" SNAP="/snapshots/$USER/" -LATEST="/snapshots/$USER/latest" date=$(date "+%Y-%b-%d:_%T") [ ! -d $SNAP ] && mkdir -p $SNAP |