On Thu, June 29, 2006 11:41 am, Brad Camroux wrote:
> Hey,
>
>
> Does anyone have a script for doing monthly backups of maildirs?
> I'd like to put all mail from, say, April, into a folder called
> April06, or something to that effect.  Of course this would be
> ideally run as a cron job.
>
> Thanks,
>
>
> Brad

The one-liner I use in my crontab is this:
tar cvjf mail-`date +%Y%m%d`.tar.bz2 ~/.maildir

it creates an archive called YYYYmmDD.tar.bz2 of my mail.

You can change the date format if you wanted, see man date for the full list.

Jamie


_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

Reply via email to