Posted by & filed under Server Admin.

Backing up the account
– Log-in via SSH as Root user

– Run the pkgacct command to package the account into a tar file:

/scripts/pkgacct username

The account backup will be created in the current working directory.

Restoring the account
– Log-in via SSH as Root user

– Run the restorepkg command to restore the cpbackup archive. Make sure you are in the same directory as the backup file

/scripts/restorepkg username

If the account already exists, you may need for force the restore:

/scripts/restorepkg --force username

There are also options to specify the account’s IP address, etc.

Leave a Reply

You must be logged in to post a comment.