Question
How to restore mail accounts from a full domain backup to Plesk?
Answer
Option 1. Restore mail account using Plesk GUI:
- Log into Plesk;
- Go to Domains > example.com > Backup Manager;
- Select the latest available backup or backup for the required date;
- Select Selected objects, set the type of object Mail account;
- Select required mail account from the list and click on it to move mail account to the selected list (to the right-hand side):
- Click OK.
Option 2. Restore mail account using the command line interface:
-
Connect to the server via SSH;
-
Run the
pleskrestore
command, for example:# /usr/local/psa/bin/pleskrestore –restore /var/lib/psa/dumps/dump.gz -only-mailnames list:[email protected],[email protected]
For more options about the
pleskrestore
utility, refer to command below:# /usr/local/psa/bin/pleskrestore –help