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 '{}' ';'
h>Jonas Smedegaard <dr@jones.dk>2023-06-27 09:35:08 +0200 commitfd54908da2b05c526dd3bee9b6dcd093214a220d (patch) treec69c845069c99d1d01044f6fafda7c08433329c6 /tags/5c/5a/20131127104626.23876.9776@bastian.jones.dk/signed parentba46132213560cf3335d53560d519c0ec0190da2 (diff)
master
Diffstat (limited to 'tags/5c/5a/20131127104626.23876.9776@bastian.jones.dk/signed')