Well I did it this way. Made a bash script, and ran it past cron


#!/bin/bash
mv /home/deklown/Msgs/backup-inbox /home/deklown/Msgs/backup-`date +%Y-%m`
mv /home/deklown/Msgs/sent /home/deklown/Msgs/sent-`date +%Y-%m`
gzip -9 /home/deklown/Msgs/sent-`date +%Y-%m`
gzip -9 /home/deklown/Msgs/backup-`date +%Y-%m`

exit 0


Then the cron entry:
1 0 1 1-12 * $HOME/mailbackup

do i need to put in /home/user/mailbackup or does $HOME fulfill bash
within cron recipe?

I would like to filter out, however, the new mail in June. They are
standard mbox files... How would I go about this?

-- 
/helfman

"At any given moment, you may find the ticket to the circus that has always
been in your possession."
  Fingerprint: 2F76 2856 776A 3E07 9F3E  452A 17D9 9B28 D75E 0A36
      GnuPG http://www.gnupg.org  Get Private!  1024D/D75E0A36

Reply via email to