The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Advice needed on partial email directories restore

Discussion in 'Data Protection' started by Lyttek, Jan 28, 2011.

  1. Lyttek

    Lyttek Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    770
    Likes Received:
    3
    Trophy Points:
    18
    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/ root@newserver:/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?
     
  2. Lyttek

    Lyttek Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    770
    Likes Received:
    3
    Trophy Points:
    18
    Did some testing and it looks like it's going to work just fine... have to chown them afterwards, but that's it.
     
  3. LinuxTechie

    LinuxTechie Well-Known Member

    Joined:
    Jan 22, 2011
    Messages:
    502
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Hello,

    It's late to say. Still the command is correct. Go for it. Good luck!
     

Share This Page