procmail
[Top] [All Lists]

Re: set names for backup files

2002-06-25 12:38:57
Vous avez écrit, le 06/25/02 à 18:10:29 :

[...]

      Try to make directory witch named by the date:

D=`date '+%m%d'`
:0 c
* ? mkdir -p /var/spool/backup.${D}
/var/spool/backup.${D}

:0 ic
| ls /var/spool/backup.* | head -36 | xargs rm -rf

 "head -36" != "sed -e 1,36d"

You can use "tail +37", but, IMHO, it is not useful erasing old backups
for each message.


I use a maildir/ backup (on another hard disk), and a nightly crontab:

find /archiv/Mail/Backup \
  -type f -mindepth 2 \( -mtime +6 -or -size +50k -mtime +2 \) \
  -exec /bin/rm -f {} \;

For retrieval, "mutt -f /archiv/Mail/Backup" is OK.
-- 
Jacques L'helgoualc'h
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>