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.

Migrating between drives

Discussion in 'General Discussion' started by ManXP, Jul 14, 2008.

  1. ManXP

    ManXP Well-Known Member

    Joined:
    Feb 3, 2005
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    Because current disk drive (which has cPanel + ~1000 accounts) is failling, datacenter will be replacing disk drive on one of servers. They will do a clean installation of cPanel on new server, and that's all. They will also leave old drive.

    So I will need to copy all cPanel settings, cPanel accounts and other data (mysql, cronjobs, etc.) to new disk drive. Any suggestions what should be copied exactly to preserve same configuration and transfer all data?
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    If you had an existing full server backup, you may want to use that to restore settings and data to the new server.
     
  3. NetGeek

    NetGeek Well-Known Member

    Joined:
    Mar 4, 2002
    Messages:
    67
    Likes Received:
    0
    Trophy Points:
    6
    I have a similar situation, but I don't have a cpanel backup. What I have is the old drive filesystem mounted on a directory. Inside it I have everything /home /etc /usr /var
     
  4. ManXP

    ManXP Well-Known Member

    Joined:
    Feb 3, 2005
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    How could I make FULL server backup?
     
  5. NetGeek

    NetGeek Well-Known Member

    Joined:
    Mar 4, 2002
    Messages:
    67
    Likes Received:
    0
    Trophy Points:
    6
    I think /home it would be no brainer to copy

    Also I think we need the following directory to copy the Apache and virtual hosts conf *
    /usr/local/apache/conf

    For MySQL I think we should copy * :

    /var/lib/mysql

    Also we need some files from /etc for users linux accounts, DNS config ..etc [still working on it] *

    * I am not sure wither it would be safe to copy the whole above three directories or we should copy some files selectivily
     
  6. ManXP

    ManXP Well-Known Member

    Joined:
    Feb 3, 2005
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    Yes, home directory needs to be copied for sure, but I believe cPanel has many config files which need to be moved as well...
     
  7. NetGeek

    NetGeek Well-Known Member

    Joined:
    Mar 4, 2002
    Messages:
    67
    Likes Received:
    0
    Trophy Points:
    6
    Yes, and this is what am trying to investigate right now. But we hope that Cpanel Support staff can answer us and spare us the time, efforts and mistakes. My server is been down since 4th July.
     
  8. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    The support staff do not frequent these forums. Waiting for a response from them via these forums is not conducive to your goal. You may want to just submit a support ticket: http://tickets.cpanel.net/submit
     
  9. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    This can be configured via WHM in the Backups section and forced to run immediately by running /scripts/cpbackup
     
  10. ManXP

    ManXP Well-Known Member

    Joined:
    Feb 3, 2005
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    Ah, I thought there are some special settings to backup cPanel/WHM config. Yes, I know about account backups on cPanel.. Oh well, I'll need to restore all accountsdon new server then using "Restore Multiple Backups" function.
     
  11. shashank

    shashank Well-Known Member
    PartnerNOC

    Joined:
    Apr 12, 2003
    Messages:
    159
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Rsync is a good method to do such a move too. You can have the DC reload the OS on the new drive and the have them slave the old drive on /backup. Then you can rsync all needed files from the old drive as they are to duplicate the drive. If you need what exact files to rsync, please pm me.
     
Loading...

Share This Page