Advice needed on partial email directories restore

Lyttek

Well-Known Member
Jan 2, 2004
772
4
168
Situation:

A server crashed, rebuilt and restored. Last good backups were from August (don't ask). One client had about 6 gigs of email, as they were using IMAP.

I've been able to extract the emails and folders from the recently crashed drive. So what I have now is this:

A) new server with folder/file structure that has complete emails up until August, 2010 AND new emails/folders since Jan 26, 2011

B) old server files (on a linux box) with complete email/folder structure up until Jan 25 when the crash happened.


I'd like to use rsync or ??? to get the emails that are missing between August 2010 and Jan 2011 onto the new server, without messing up any new emails/folders that exist on the server now.

Because it's such a large amount of data, I wanted to make sure I wasn't doing something stupid before I actually do it.

Here's what I'm planning, from the old server files, please check my syntax:

Code:
rsync -vr /oldhome/useracct/mail/domain/ [email protected]:/home/useracct/mail/domain
Even though the UID/GUID *should* be the same, I figure better to just let the files/folders receive the UID/GUID from the folders they end up in... and it should take care of all the email accounts, yes?

Thoughts?
 

Lyttek

Well-Known Member
Jan 2, 2004
772
4
168
Did some testing and it looks like it's going to work just fine... have to chown them afterwards, but that's it.