Portal Home > Knowledgebase > cPanel > Batch Restore cPanel Accounts

Batch Restore cPanel Accounts

From time to time, you'll find that you need to restore an entire directory of cPanel backups. After logging in as root, you can use this code to do this:

for i in $(ls | grep .tar.gz) ; do /scripts/restorepkg $i ; done ;

This command requires that all the files be in the same directory, and it will process the standard cPanel restores for each one.

Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Using Index Manager (Views: 347)
Creating A Subdomain (Views: 252)