cPanel & WHM Version 94 has been released, and brings a slew of great updates. Take a look at what is included, and then upgrade today!

Enhance help for /scripts/restorepkg for restoring incremental backups

mrmincho shared this idea 8 years ago
Completed

Currently information is not documented for restoring an incremental backup in the /scripts/restorepkg script.

I found I can rename the incremental backup folder to cpmove-$user and restore it from the full path, ie /scripts/restorepkg /backup/cpbackup/daily/cpmove-$user , however this isn't documented at all.

More options for restorepkg would be nice, like option to overwrite mysql databases or not. --force may do this but that isn't documented well either.

Best Answer
photo

In 11.44 and later restorepkg allows you to specify the path to in incremental backup without having to rename the directory:


/usr/local/cpanel/bin/restorepkg [--force] [--newuser <username>] [--allow_reseller] [--skipaccount] [--ip=(y|n|custom IP)] -- [cpuser|/path/to/cpuser-file|/path/to/extracted-cpuser-file|/path/to/incremental_backup]

Comments (2)

photo
1

It would be nice if you didn't have to rename the folder, and also nice if pkgacct could backup in incremental format.

photo
1

In 11.44 and later restorepkg allows you to specify the path to in incremental backup without having to rename the directory:


/usr/local/cpanel/bin/restorepkg [--force] [--newuser <username>] [--allow_reseller] [--skipaccount] [--ip=(y|n|custom IP)] -- [cpuser|/path/to/cpuser-file|/path/to/extracted-cpuser-file|/path/to/incremental_backup]

Replies have been locked on this page!