Skip to main content

Restore cPanel account

Comments

7 comments

  • cPRex Jurassic Moderator
    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
  • Handssler Lopez
    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
  • cPRex Jurassic Moderator
    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
  • Handssler Lopez
    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
  • cPRex Jurassic Moderator
    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
  • Handssler Lopez
    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 account
    0
  • cPRex Jurassic Moderator
    Ah, thanks for that clarification.
    0

Please sign in to leave a comment.