August 29, 2015

How to restore Cpanel account backup

How to restore Cpanel account backup
Hello,

I have deleted user “xyz” from the WHM. Now I want to restore it.
This account has been deleted on 2nd July 2013 and this account showing in daily, weekly and monthly backup.
Daily backup updated today, monthly and weekly backup updated on 5 July 13. Now I have two queries.

1). Is this correct backup of “xyz” account because account deleted on 2nd July 2013.
2). If it is OK. Then how to restore it. Is below procedure is OK?

# /scripts/restorepkg xyz

Thanks,
Imran Khan.


Hello,

Yes, you have correct backup in your daily, weekly and monthly folder because cpanel backup system is not deleting the backups from daily, weekly and monthly directory if the account is not present on the server as cpanel backup system is just overwrite the current user backups which are present on your server

And you can restore the cpanel backup through command line and WHM, If you want to restore it through command line use the following command

/scripts/restorepkg /YOUR/BACKUP/FILE/PATH

Ex 
/scripts/restorepkg /backup/cpbackup/daily/xyz.gz


If you are using cPanel 11.38, the option to restore legacy backups is available at:

"WHM Home » Backup » Legacy Restore Backups"

Or, you can restore it through the command line:

/scripts/restorepkg /backup/cpbackup/daily/username.tar.gz
Thank you.

Hello,

Thanks guys. I have copied the xyz.tar.gz backup file in /home/ directory and run the below command and restored backup successfully.

#/scripts/restorepkg xyz

Yes, When you try to restore the account with user name, cPanel account restore script is checking the user backup file in following directory
/home
/home2
/home3
/root
/usr
/usr/home
/web

xem thêm https://forums.cpanel.net/threads/how-to-restore-cpanel-account-backup.353751/ 


0 comments:

Post a Comment