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

Command line option for restorepkg to restore to a specified (different) username

Feature Importer shared this idea 8 years ago
Completed

As a Server Administrator, I want a command line option for restorepkg to restore to a specified (different) username, so that I can restore a backup to a new username.


This is a feature request for a command line option for restorepkg to restore to a specified (different) username when doing migrations to a cpanel server.


The copy multiple accounts page in the control panel lets you change the username if there is a a username conflict however if a site is too big or there are problems with copy multiple accounts there is currently no way to resolve username conflicts using pkgacct and restorepkg.


This is a feature that has been migrated over from the cPanel Forums. All previous comments and discussions concerning this feature can be located at:

http://forums.cpanel.net/f145/command-line-option-restorepkg-restore-specified-different-username-178161.html

Best Answer
photo

We will add a new parameter to scripts/restorepkg: --newuser. This accepts a username as an argument, which becomes the username of the account when restoration is complete.


This functionality is in cPanel & WHM 11.42.

Comments (2)

photo
1

We will add a new parameter to scripts/restorepkg: --newuser. This accepts a username as an argument, which becomes the username of the account when restoration is complete.


This functionality is in cPanel & WHM 11.42.

photo
1

Thanks for adding this functionality! Is it possible to add this to the cPanel documentation for /scripts/restorepkg too?

Replies have been locked on this page!