Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

problem, migration site with SSH!

Discussion in 'Data Protection' started by moh90, Apr 15, 2014.

  1. moh90

    moh90 Registered

    Joined:
    Apr 15, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    I was trying to migration site with backup, and this is the steps I was did:

    - generate backup from old server - Cpanel.
    - move this backup to /www directory.
    - give it chmod 777.
    - use this command from SSH in "new server" - "wget -U firefox -r -np http://www.xxx.com/backup-user.tar.gz"
    - downloaded backup into new server and move it to /home.
    - trying restore backup from WHM use user of backup but its shown "No Restorable archives found!".
    - now I have problem to restore this backup, the command "ls -la" shown "mysite.com" in new server SSH and the backup file into it!!

    How I can migrate this account now, I guess this new backup version cant understanding it, please help me I am noob! :(
     
  2. SS-Maddy

    SS-Maddy Well-Known Member

    Joined:
    Mar 28, 2009
    Messages:
    104
    Likes Received:
    6
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    Are you sure the backup downloaded and moved to /home of new server is a full backup ? just use tar command to check whether there is any error or so. Exact command would be tar tzf /home/backup-user.tar.gz If there is an error, you may need to redo the download part at the very least
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,367
    Likes Received:
    1,855
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    Note that adjusting the archive permissions to 0777 is not necessary. It's also not a good idea to make the archive available publicly by moving it to the public_html (www) directory, as that would allow anyone to download the backup archive and obtain the data associated with the account.

    That being said, restoring the archive should be possible via:

    Code:
    /scripts/restorepkg /path/to/archive.tar.gz
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice