Joel Merrick ha scritto:

Hi guys,

I've built up a LARGE (>140Mb) IMAP mailbox over the past few months and
was wondering if there's a way to archive this mail, but still have it
available to view (via https or something)

Thoughts?




# find . -mtime +120 -exec tar -rvf mail_archive.tar {} \; -exec rm {} \;
# bzip2 mail_archive.tar

this should add to mail_archive.tar.bz2 and remove all the files last modified more than 120 days ago

alternatives to -mtime are
-atime
-ctime

Francesco

--
[email protected] mailing list



Reply via email to