aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/backup.sh3
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"