From dc004352c28745e2156a4ef1d6582bfed2b05a82 Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 20 Mar 2015 01:35:16 +0100 Subject: cleanup-backup: Adding first version of cleanup-backup script, service and timer. --- scripts/cleanup-backup | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 scripts/cleanup-backup (limited to 'scripts') 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 {} \; -- cgit v1.2.3-70-g09d2