summaryrefslogtreecommitdiffstats
path: root/cron/cron.daily/beauties-cleanup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'cron/cron.daily/beauties-cleanup.sh')
-rw-r--r--cron/cron.daily/beauties-cleanup.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/cron/cron.daily/beauties-cleanup.sh b/cron/cron.daily/beauties-cleanup.sh
new file mode 100644
index 0000000..d6c83a4
--- /dev/null
+++ b/cron/cron.daily/beauties-cleanup.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+BEFORE=$(du -h /opt/beauties/data/storage)
+echo "#universe +++ $BEFORE - Starting cleanup ..." | nc -N 127.0.0.2 2424
+find /opt/beauties/data/storage/* -mtime +60 -exec rm {} \; | nc -N 127.0.0.2 2424
+AFTER=$(du -h /opt/beauties/data/storage)
+echo "#universe +++ $AFTER - Cleanup complete." | nc -N 127.0.0.2 2424