aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/cleanup-backup
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/cleanup-backup')
-rwxr-xr-xscripts/cleanup-backup4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/cleanup-backup b/scripts/cleanup-backup
new file mode 100755
index 0000000..af62b88
--- /dev/null
+++ b/scripts/cleanup-backup
@@ -0,0 +1,4 @@
+#!/usr/bin/env bash
+
+# Delete files in specified folder, older than "older_than" (in days)
+find $cleanup_folder -type f -atime +$older_than -print -exec rm {} \;