[Gllug] Maildir Archiving

Ben Whyte ben at whyte-systems.co.uk
Wed Mar 12 22:22:35 UTC 2008



>>  What about using find? eg:
>>  find ~/Maildir/cur -type f -mtime +90 -print0|xargs -0 -i mv {}
>>  ~/Maildir/.archive/cur
> 
> Sorry didn't read the preferably tar part - had a late night. :)  The
> principal is the same though.

Cheers, thats the approach or very similar.  I excluded directories and 
piped to a file, before taring using the file and then using xargs to do 
the rm from the file.

Ben
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list