diff options
Diffstat (limited to 'scripts/backup.sh')
-rwxr-xr-x | scripts/backup.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/backup.sh b/scripts/backup.sh index 51ab218..eca16da 100755 --- a/scripts/backup.sh +++ b/scripts/backup.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash +# Delete old snapshots +find "/snapshots/$USER" -maxdepth 1 -mtime +120 -type d -execdir rm -rf {} + + OPT="-aPh" EXCLUDE="--exclude-from=$HOME/.backup-exclude-list.txt" LINK="--link-dest=/snapshots/$USER/latest" |