aboutsummaryrefslogtreecommitdiff
path: root/clean.sh
diff options
context:
space:
mode:
Diffstat (limited to 'clean.sh')
-rwxr-xr-xclean.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/clean.sh b/clean.sh
new file mode 100755
index 0000000..a6b85fc
--- /dev/null
+++ b/clean.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+svrs='change
+me
+example.com
+weeeee.example.com'
+
+for _svr in $svrs ; do
+ find ./"$_svr"/monthly -type f -mtime +$((30*6)) -delete
+ find ./"$_svr"/weekly -type f -mtime +$((7*4)) -delete
+ find ./"$_svr"/daily -type f -mtime +7 -delete
+done