aboutsummaryrefslogtreecommitdiff
path: root/clean.sh
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2025-12-31 17:39:36 -0500
committerMitchell Riedstra <mitch@riedstra.dev>2025-12-31 17:39:36 -0500
commit99957c2e49121b616c61e483bf6ebc2271789a50 (patch)
tree8ac8d97c400b0df61f4362868e1ae580509c7068 /clean.sh
downloadsvr-backups-99957c2e49121b616c61e483bf6ebc2271789a50.tar.gz
svr-backups-99957c2e49121b616c61e483bf6ebc2271789a50.tar.xz
initialHEADmaster
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