Our features site is undergoing a refresh! Be sure to explore the revamped site and discover our latest product roadmap launching here on Monday, March 18th.

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

Feature Importer shared this idea 13 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.

Replies (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!