summaryrefslogtreecommitdiff
path: root/rm-toobig
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2001-12-12 19:52:40 +0000
committerJonas Smedegaard <dr@jones.dk>2001-12-12 19:52:40 +0000
commitc81b7f986867db292d62a1757123723b5ef66518 (patch)
treea217cf2f481ab7b3099ef76b519a4cc8e1786096 /rm-toobig
Initial revision
Diffstat (limited to 'rm-toobig')
-rwxr-xr-xrm-toobig14
1 files changed, 14 insertions, 0 deletions
diff --git a/rm-toobig b/rm-toobig
new file mode 100755
index 0000000..77889b1
--- /dev/null
+++ b/rm-toobig
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# It seems netatalk has problems dealing with Eudora:
+# Occasionally files in the "Attachments Folder" explodes
+# to sizes in the area 80-100 Megabytes.
+#
+# This script is the simple "solution": delete huge files...
+#
+# I put it in a cron job once a month just before an
+# rsync script to mirror all homes to another machine.
+
+BASE=/home
+
+find $BASE -path '*Attachments*' -size +15000k -exec rm '{}' ';'