All pastes #348199 Raw Edit

Someone

public text v1 · immutable
·published 2007-02-10 00:19 UTC
rendered paste body
# email backup, done in ~/Maildir

for file in `find . -name "cur" -type d`
 do 
  find $file -mtime +30 >> oldfiles.txt
  find $file -mtime +30 | xargs rm
 done 
 tar -cf `date '+%M%y'`.tar -I oldfiles.txt
 bzip2 `date '+%M%y'`.tar
 rm `date '+%M%y'`.tar` oldfiles.txt