Want a quick and dirty method?
Assume username is fred
cd /var/spool/mail
mv fred fred_arc
(As soon as a new message comes in, it will recreate a new mailbox.)
tar -czvf /home/fred/fred_arc_mail.tgz ./fred_arc
(After confirming the tar and compression succeeded)
rm fred_arc
If you need to restore, just extract it, then cat it back into the original mailbox file.
Last edited by Suncoast; 04-24-2009 at 09:36 PM.
|