Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Jan 2004
    Posts
    59

    Question Help with backing up accounts on another server.

    Hi,
    I need to backup all of my client accounts onto another server. I also need to make sure the DB's, addon domains, parked domains, email accounts, etc... all get backed up.

    ---------------------------------------------------------------------------------------

    First of all...

    In cpanel, users can create a backup of everything just by clicking a link which
    creates a tar file in their homw directory.

    Is there any way to generate a backup like this for every account all at once and then move them to another servers all at once? This would be idea? Can this be done?

    ---------------------------------------------------------------------------------------

    I was thinking about using the SCP command but it wont grab everything.

    What I want to know is if this will work....

    I was thinking about using the cpanel transfer feature to move the accounts to another server
    as a way of backing them up. Here' are my questions...

    1. When you use the multi account transfer system, will it remove the accounts on the old server? I've done it before but just cant remember if it removed the accounts on the old server.

    2. I do remember that when you transfer accounts to another server, a cpmove-account.tar file is made for each account on the old server. The problem is this takes up space on the old server. So what if before transferring the accounts, the current server with all of the accounts on them are taking up, for example, 30GB and there is only 5GB of available space left. All of thoses "cpmove" tar files will take up much more than 5GB. Do how do I keep the server from running out of disk space.

    3. On the new server, will the new zone files contain the name servers of the new server along with the new servers' ip?


    If the above is not the best way, what about using scp? How can I get everything?
    a) Account data
    b) DB's
    c) Addon domains
    d) parked domains
    e) log files/stats
    f) email accounts
    g) anything else needed

    -------------------------------------------------------------------------------
    For the accounts, will this work?
    -------------------------------------------------------------------------------

    cd /home; tar czvf accountID.tar.gz accountID; scp accountID.tar.gz root@receivingserver.com:/home/yourtmp

    Enter root PW on backup server

    Then this command...

    cd /home/yourtmp tar xzvf accountID.tar.gz

    --------------------------------------------------------------------------------
    Could I get the entire home directory like this?
    --------------------------------------------------------------------------------
    tar czvf home.tar.gz home; scp home.tar.gz root@receivingserver.com:/home/backup

    Enter root PW on backup server

    Then this command...

    tar xzvf home.tar.gz

    ---------------------------------------------------------------------------------

    Next, how do I get the following...

    1. Addon and parked domains.
    2. MySQL DB's

    ---------------------------------------------------------------------------------

    Finally,
    WHM has a backup feature that allows you to backup accounts onto another server.
    Can someone post very detailed instructions on how to do this? Also, I see you can set it up to backup daily. How can I set it up to do a backup immediately.

    Thank you very much!

  2. #2
    Member
    Join Date
    Feb 2004
    Posts
    203

    Default

    Hello,

    me too I need some helps for new new server, this work for backup, hosting and secondary DNS, in my primary server is already installed cPanel, so how to setup the partitions?


    like this?

    /
    /backup
    /boot
    /home
    /usr
    /tmp
    /var


    thanks

  3. #3
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    This is what the cpanel backup feature in WHM does, you can configure it to ftp to another location.

    BTW - There are plenty of threads on backuping up, please use the search feature.
    Regards,
    David
    Forum Moderator

  4. #4
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    Quote Originally Posted by flash7
    Hello,

    me too I need some helps for new new server, this work for backup, hosting and secondary DNS, in my primary server is already installed cPanel, so how to setup the partitions?


    like this?

    /
    /backup
    /boot
    /home
    /usr
    /tmp
    /var


    thanks
    This has nothing to do with what the thread starter was asking. DO NOT hijack others threads. If after doing a thorough search you still need help open a new thread in the appropriate category.
    Regards,
    David
    Forum Moderator

  5. #5
    BANNED
    Join Date
    Jan 2005
    Posts
    49

    Default

    Why are you doing this? Have you sold? I noticed you were selling in another post. If you sold let us know to who and for how much.

    Quote Originally Posted by phantom2
    Hi,
    I need to backup all of my client accounts onto another server. I also need to make sure the DB's, addon domains, parked domains, email accounts, etc... all get backed up.

    ---------------------------------------------------------------------------------------

    First of all...

    In cpanel, users can create a backup of everything just by clicking a link which
    creates a tar file in their homw directory.

    Is there any way to generate a backup like this for every account all at once and then move them to another servers all at once? This would be idea? Can this be done?

    ---------------------------------------------------------------------------------------

    I was thinking about using the SCP command but it wont grab everything.

    What I want to know is if this will work....

    I was thinking about using the cpanel transfer feature to move the accounts to another server
    as a way of backing them up. Here' are my questions...

    1. When you use the multi account transfer system, will it remove the accounts on the old server? I've done it before but just cant remember if it removed the accounts on the old server.

    2. I do remember that when you transfer accounts to another server, a cpmove-account.tar file is made for each account on the old server. The problem is this takes up space on the old server. So what if before transferring the accounts, the current server with all of the accounts on them are taking up, for example, 30GB and there is only 5GB of available space left. All of thoses "cpmove" tar files will take up much more than 5GB. Do how do I keep the server from running out of disk space.

    3. On the new server, will the new zone files contain the name servers of the new server along with the new servers' ip?


    If the above is not the best way, what about using scp? How can I get everything?
    a) Account data
    b) DB's
    c) Addon domains
    d) parked domains
    e) log files/stats
    f) email accounts
    g) anything else needed

    -------------------------------------------------------------------------------
    For the accounts, will this work?
    -------------------------------------------------------------------------------

    cd /home; tar czvf accountID.tar.gz accountID; scp accountID.tar.gz root@receivingserver.com:/home/yourtmp

    Enter root PW on backup server

    Then this command...

    cd /home/yourtmp tar xzvf accountID.tar.gz

    --------------------------------------------------------------------------------
    Could I get the entire home directory like this?
    --------------------------------------------------------------------------------
    tar czvf home.tar.gz home; scp home.tar.gz root@receivingserver.com:/home/backup

    Enter root PW on backup server

    Then this command...

    tar xzvf home.tar.gz

    ---------------------------------------------------------------------------------

    Next, how do I get the following...

    1. Addon and parked domains.
    2. MySQL DB's

    ---------------------------------------------------------------------------------

    Finally,
    WHM has a backup feature that allows you to backup accounts onto another server.
    Can someone post very detailed instructions on how to do this? Also, I see you can set it up to backup daily. How can I set it up to do a backup immediately.

    Thank you very much!

Similar Threads & Tags
Similar threads

  1. Backing up and Restoring accounts
    By ihatetoregister in forum Data Protection
    Replies: 6
    Last Post: 07-28-2008, 08:06 PM
  2. backing up extremely large accounts
    By d00t in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-25-2006, 10:41 AM
  3. Backing up All Accounts
    By brivers in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-28-2005, 11:17 AM
  4. Backups are not backing up all accounts
    By hostit1 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-17-2005, 07:51 PM
  5. Help with backing up accounts
    By wsenter in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-24-2005, 03:30 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube