diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/cleanup-backup | 4 |
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 {} \; |