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.

transfer accounts from another server malfunction

Discussion in 'General Discussion' started by inworx, Sep 23, 2007.

  1. inworx

    inworx Member

    Feb 17, 2007
    Likes Received:
    Trophy Points:

    I had transferred about 80 accounts from my old WHM server to the new one, but the problem is that, all the files are transferred but NO database has been transferred at all!

    There are about 300 databases in total but the new server has ZERO!

    I tried to transfer them again, but still failed.

    I hope there is someone who coul help me out here in this situation before its monday....
  2. syn74x

    syn74x BANNED

    Sep 23, 2007
    Likes Received:
    Trophy Points:
    You need to make sure in the Backup settings that you put backup the mySQL aswell.
    (If you have already made a backup, then delete it with rm -rf foldername/


    Firstly, go into WHM > Backup > Config Backup. (Tick Per Account and Entire MySQL Directory)

    SSH Into your server, run /scripts/cpbackup

    cd too " backup/cpbackup/ "

    Type " ls "

    You will have a monthly/

    Do; tar -zcvf backup_monthly_folder.tar.gz monthly

    (If you have alot of accounts it can take from afew minutes to hours)

    Once it's finished you should see a backup_daily_folder.tar.gz in /backups/cpbackup (By once again typing " ls ")

    Next do; scp -c arcfour backup_monthly_folder.tar.gz root@hostname:/home/
    (it will ask you for your new servers root password by the way)

    Then simple do rm -rf backup_monthly_folder.tar.gz
    And it will be deleted from your old server!

    Then untar it by;

    tar -xvfz backup_daily_folder.tar.gz

    & Remove with; rm -rf backup_monthly_folder.tar.gz

    then go into your servers new root WHM, and go into Backup > Restore!

    And your done :)
    #2 syn74x, Sep 23, 2007
    Last edited: Sep 23, 2007

Share This Page