Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-30-2015, 02:39 AM   #1
LQ Newbie
Registered: Jul 2015
Posts: 1

Rep: Reputation: Disabled
archiving a huge Mail Dir

Hi guys,

I have a MailDir with 650 GB, I need to split and archive it using tar, sorting by month.

when I use something like ls -alh to list the contents historically to verify date, it takes so long time,

could you please advise me how to deal with the Dir efficiently in this case efficiently..

Old 07-30-2015, 02:41 AM   #2
Senior Member
Registered: Oct 2005
Distribution: SLES 12
Posts: 1,644

Rep: Reputation: 111Reputation: 111
Old 07-30-2015, 02:54 AM   #3
Senior Member
Registered: Mar 2012
Posts: 1,419

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Probably 'find' with appropriate -mtime values piped to your tar command.
Whatever you use is going to take ages as each file will need to be 'stat'ed to get the date.
Probably you have far too many files for 'sort'ing to a list to be usable..

Like asking for a quick way to sort 650 tonnes of assorted coloured marbles into a bin for each of the 1000 colours ... there isn't one.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Archiving mail through evolution Tunababa Linux - Newbie 1 06-30-2010 07:38 AM
Mail Archiving Solution kool_kid Linux - Server 2 04-01-2009 02:17 PM
Archiving e-mail, access via web? Aestus Linux - Server 1 06-04-2007 11:48 AM
archiving e-mail adm1329 Linux - Software 3 10-11-2006 03:00 PM
mail archiving methods selgip Linux - Software 3 03-01-2005 08:58 PM

All times are GMT -5. The time now is 11:04 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration