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/ 


Related Posts:

  • How to Clean Log Files Before You Enable Log Rotation Checking disk space usage and removing old log files cPanel & WHM create and maintain log files. These log files allow you to examine errors and other occurrences on the system. After an extended period of time, the sy… Read More
  • cPanel Log file locations All cPanel log file locations and Basic troubleshooting, most activity that happens on a server to log files, so that you can go back and review log entries for problems, instead of having to be on the server at the time of… Read More
  • 11 Ways to Free Up Disk Space on a cPanel Server I’m sure that most of you have been to the point where one or more of your servers start to fill up as you get more customers. The server’s performing just fine, but there’s one problem…you’re out of disk space! Here are a f… Read More
  • 5 Ways to Get a User’s Disk Usage This may seem pretty simple, but I see a lot of questions about how to get a user’s disk space usage on a cPanel user. I put together a quick list of 5 simple ways for the average admin:  1) Good ole’ cPanel/WHM. You c… Read More
  • Disk Space for MySQL Databases in cPanel Show as 0MB When you upgrade from cPanel 11.24 to 11.25, your users may notice that in cPanel, their MySQL databases show 0MB of disk space used, when they know their databases are much larger. This is due to an option in cPanel that yo… Read More

0 comments:

Post a Comment