summaryrefslogtreecommitdiff
path: root/localrmtoobig
blob: 0a098c5121e628376b53e51df2edf172cd6072d6 (plain)
  1. #!/bin/sh
  2. #
  3. # /usr/local/sbin/localrmtoobig
  4. # Copyright 2001 Jonas Smedegaard <dr@jones.dk>
  5. #
  6. # $Id: localrmtoobig,v 1.1 2002-03-09 20:41:48 jonas Exp $
  7. #
  8. # It seems netatalk has problems dealing with Eudora:
  9. # Occasionally files in the "Attachments Folder" explodes
  10. # to sizes in the area 80-100 Megabytes.
  11. #
  12. # This script is the simple "solution": delete huge files...
  13. #
  14. # I put it in a cron job once a month just before an
  15. # rsync script to mirror all homes to another machine.
  16. #
  17. # UPDATE: The script has had no use lately - either netatalk has fixed the
  18. # problem, or only old versions of Eudora has this faulty behaviour.
  19. #
  20. BASE=/home
  21. find $BASE -path '*Attachments*' -size +15000k -exec rm '{}' ';'