Manually restore an account

This guide will go over how to manually restore a cPanel account from your JetBackup generated backups.

1. First, you need to access your backup destination and download the backup snap folder to your cPanel server.

/path/to/backup_folder/jetbackup_1_1_{UNIQE_JOB_ID}/{USERNAME}/snap.2015-10-29.031006

Note that "snap" folders are the actual backups and the backup date is indicated at the folder name. To make sure you are in the right folder, verify that it contains the folders "homedir" & "mysql".

Once you have your snap folder downloaded, Proceed to login to your cPanel server terminal.

If Compress databases on the backup process is enabled, make sure to uncompress the database(s) in the backup folder before proceeding to the next step.

cd {SNAP_FOLDER_PATH}/mysql
gzip -d {DATABASE_NAME}.sql.gz

2. Next you will need to create a tar archive file of your backup content with the cpmove filename format and make sure to adjust the filename with the correct "USERNAME".

tar -czvf ~/cpmove-{USERNAME}.tar.gz .

3. Copy the tar file to your cPanel server home directory then navigate to the home folder.

cd /home

4. Restore the backup using cPanel's script.

/scripts/restorepkg cpmove-{USERNAME}.tar.gz

All done!

NOTE: If you are restoring from a full backup download generated in JetBackup, please make sure to rename the downloaded tar archive file to the cpmove filename format(cpmove-{USERNAME}) then proceed with step 3.