Operating System & Version
CLOUDLINUX 7.9
cPanel & WHM Version
98.0.8

Handssler Lopez

Well-Known Member
Apr 30, 2019
90
34
18
Guatemala
cPanel Access Level
Root Administrator
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
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
17,470
2,843
363
cPanel Access Level
Root Administrator
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!
 

Handssler Lopez

Well-Known Member
Apr 30, 2019
90
34
18
Guatemala
cPanel Access Level
Root Administrator
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?
 

Handssler Lopez

Well-Known Member
Apr 30, 2019
90
34
18
Guatemala
cPanel Access Level
Root Administrator
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?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
17,470
2,843
363
cPanel Access Level
Root Administrator
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:

Code:
/scripts/pkgacct username
 

Handssler Lopez

Well-Known Member
Apr 30, 2019
90
34
18
Guatemala
cPanel Access Level
Root Administrator
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:

Code:
/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