Restoration of a backup for a single account

ahoychris

Member
Jul 10, 2013
9
0
1
cPanel Access Level
Root Administrator
One of our clients has recently gone on a "cleaning" spree on their wordpress website and deleted a lot of pages and the navigation. The developers who have worked on this project all left the company along time ago so aren't on hand to point out any changes.

Thankfully after this clients site was moved onto our new cpanel server it had backups turned on automatically.

I did what I though was the correct way to restore the backup:
  1. I made a manual backup of the database and files to my local machine encase everything went catastrophically wrong
  2. I went into Cpanel and went to backup restoration
  3. Selected the account and the requested backup date from the client (jan5)
  4. Made sure Subdomains, mail and MySQL were all ticked
  5. Added the account to the Queue
  6. Clicked restore to restore the account

The restore status has changed to completed. I went onto the website and nothing had changed. The blog has posts from jan 12'th (the backup I chose was from Jan5) and the backup sql and tgz files are still in the public_html folder.

Have I done something wrong to revert the account to its previous state? Is this completely the wrong method for doing this?

All I need to do is revert the mySQL database back to Jan 5, restoring the file structure is not necessary but neither seem to have happened.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
Hello :)

How was the backup archive for this account generated? You can terminate the account and restore it from the backup archive if it's a full backup that was generated through /scripts/pkgacct or from the backup options available in cPanel/Web Host Manager. Note that this type of backup archive differs from just a home directory backup generated through cPanel. To restore it after terminating the account, simply move the archive to the /home directory and use:

"WHM Home » Backup » Restore a Full Backup/cpmove File"

Note: You may want to generate an additional backup via /scripts/pkgacct as a precaution before terminating the account. Move this additional backup archive to another directory such as "/home/backup-failsafe" so it's not directly in /home or /root.

Thank you.
 

ahoychris

Member
Jul 10, 2013
9
0
1
cPanel Access Level
Root Administrator
I created the backups automatically. When I set up the server I went to backup > Backup configuration, set up a enabled, compressed weekly backup. If i go to backup user selection all my accounts are ticked for backup (i'm not using legacy).

How do I go about making a manual backup that I can use in "Restore a Full Backup/cpmove File"?

(the backups i have are all in USER.tar.gz format, and were located in /backup/date in the server root)

EDIT: Never mind I made a backup and saved it to a safe location.
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
You can restore an account from backups enabled through WHM via:

"WHM Home » Backup » Backup Restoration"

Note that you should terminate the account before restoring it, and generate a manual backup before termination to be safe.

Thank you.
 

ahoychris

Member
Jul 10, 2013
9
0
1
cPanel Access Level
Root Administrator
Thanks, I got this in the end. I did not realise i had to terminate the account for it to work correctly. First time I tried to restore the backup it informed me a user with that account name already exited, retried the restoration and it worked fine.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
Thanks, I got this in the end. I did not realise i had to terminate the account for it to work correctly. First time I tried to restore the backup it informed me a user with that account name already exited, retried the restoration and it worked fine.
I am happy to see you were able to resolve the issue. Thank you for updating this thread with the outcome.