Restore cPanel account
I have a cPanel account, which has been transferred in passive mode through ftp, this account has 70GB I have the file in:
/home/cpaneluser/backup.tar.gz
I generally download and upload the backups and restore through ftp up to 10GB or up to 15GB but 70GB I don't see it very convenient besides that it would mean a lot of upload time
In order to restore this account in this new server, what steps should I follow to be able to restore the account correctly through WHM or Terminal, I always thank you for the support provided.
I have access to the terminal
-
Hey there! Do you know if this is a full account backup created with pkgacct or a cPanel backup created through the user's cPanel interface? For a full account backup, you could move the file up two levels so it's just in /home, then use the WHM >> Transfer or Restore a cPanel Account tool. If it is a cPanel account backup, you can leave it where it is and perform the restore through cPanel >> Backup Wizard >> Restore a Home Directory backup. Let me know if that helps! 0 -
Hey there! Do you know if this is a full account backup created with pkgacct or a cPanel backup created through the user's cPanel interface? For a full account backup, you could move the file up two levels so it's just in /home, then use the WHM >> Transfer or Restore a cPanel Account tool. If it is a cPanel account backup, you can leave it where it is and perform the restore through cPanel >> Backup Wizard >> Restore a Home Directory backup. Let me know if that helps!
the tool was used cpanel >> backups >> Generate a full backup This copy is generated from an external server to be able to be restored on this totally different server. Will the tool work? I just put the file backup.tar.gz in /home/ and can I call it from WHM "Home" Transfers "Transfer or Restore to cPanel Account?0 -
That's correct - if it's a full backup, just move it up to /home and you'll be able to restore directly through WHM. 0 -
That's correct - if it's a full backup, just move it up to /home and you'll be able to restore directly through WHM.
thanks @cPRex if it works, now always in the same thread I am connected through shh to the account and as the option of "Backups" native of cPanel is deactivated I am packing the entire home of the account in a .tar.gz file using the following command tar -cvzf backup.tar.gz / home / cpanel-user / the problem is that after 1 hour the process dies skipping the following line: Killed - What command can I use to always generate the .tar.gz file and the process does not die? - that the home can be packed even if the connection to the server by shh dies for example when DB are restored that the process can continue even when the connection to the server ends or the session is closed and the restoration continues in the background?0 -
Creating a backup with that command will not be enough to restore the account to a new server - that is just packaging up the user's home directory. Your SSH session is likely timing out for some reason. I would run the command inside of a screen session to ensure it runs even if you get disconnected. If you want a backup of *everything* for a particular user that can be moved to a new server and restored, I would recommend running this: /scripts/pkgacct username
0 -
Creating a backup with that command will not be enough to restore the account to a new server - that is just packaging up the user's home directory. Your SSH session is likely timing out for some reason. I would run the command inside of a screen session to ensure it runs even if you get disconnected. If you want a backup of *everything* for a particular user that can be moved to a new server and restored, I would recommend running this:
/scripts/pkgacct username
in this account I only have access through cPanel. Jailed Shell for which the mentioned command does not work and I need to transfer the account0 -
Ah, thanks for that clarification. 0
Please sign in to leave a comment.
Comments
7 comments