aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanJacobs2022-10-08 15:40:00 +0200
committerSanJacobs2022-10-08 15:40:00 +0200
commit9932d6e71fe67faed901f56ae1d17c1f5b53587e (patch)
tree770aa0ea9448822345296d1ff15c5e88a438cda0
downloadsend-9932d6e71fe67faed901f56ae1d17c1f5b53587e.tar.gz
send-9932d6e71fe67faed901f56ae1d17c1f5b53587e.tar.bz2
send-9932d6e71fe67faed901f56ae1d17c1f5b53587e.zip
Initial Commit
-rw-r--r--send-refresh.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/send-refresh.sh b/send-refresh.sh
new file mode 100644
index 0000000..d57647f
--- /dev/null
+++ b/send-refresh.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# Recursively delete directories by age (14 days)
+find /path/to/base/dir/* -type d -ctime +14 -exec rm -rf {} \;
+
+
+
+