From d6a23e40c18794bab2648a828cf230d0fce97ab7 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sat, 9 Mar 2002 20:41:48 +0000 Subject: rename rm-toobig to localrmtoobig and add comments. --- localrmtoobig | 23 +++++++++++++++++++++++ rm-toobig | 14 -------------- 2 files changed, 23 insertions(+), 14 deletions(-) create mode 100755 localrmtoobig delete mode 100755 rm-toobig diff --git a/localrmtoobig b/localrmtoobig new file mode 100755 index 0000000..0a098c5 --- /dev/null +++ b/localrmtoobig @@ -0,0 +1,23 @@ +#!/bin/sh +# +# /usr/local/sbin/localrmtoobig +# Copyright 2001 Jonas Smedegaard +# +# $Id: localrmtoobig,v 1.1 2002-03-09 20:41:48 jonas Exp $ +# +# 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. +# +# UPDATE: The script has had no use lately - either netatalk has fixed the +# problem, or only old versions of Eudora has this faulty behaviour. +# + +BASE=/home + +find $BASE -path '*Attachments*' -size +15000k -exec rm '{}' ';' diff --git a/rm-toobig b/rm-toobig deleted file mode 100755 index 77889b1..0000000 --- a/rm-toobig +++ /dev/null @@ -1,14 +0,0 @@ -#!/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 '{}' ';' -- cgit v1.2.3