Applicable to:
- Plesk for Linux
Question
How to restore email accounts from a Plesk backup?
Answer
-
Go to Domains > example.com > Backup Manager.
-
Click on a backup from which you want to restore mail data.
-
For What do you want to restore? select Selected objects.
-
Set the type of object - Mail account.
-
Select an email account from the list and click on it to move to the selected list.
-
Click OK to start the restoration.
-
Connect to the server via SSH.
-
List all available Plesk backups:
# /usr/local/psa/admin/bin/pmm-ras --get-dump-list | grep .xml:
-
Use the
pleskrestore
utility to restore the mail data.Example:
# /usr/local/psa/bin/pleskrestore --restore /var/lib/psa/dumps/domains/example.com/backup_info_2301030133.xml -only-mailnames list:john_doe@example.com
where:
-
backup_info_2301030133.xml - backup name from step 2
-
john_doe@example.com - email account which is going to be restored
To learn more about the
pleskrestore
utility options, run the command:# /usr/local/psa/bin/pleskrestore --help
-
Comments
2 comments
It is possibile to restore a mailbox to another/new mailbox instead of the same mailbox?
Example: User aa@bb.com want to restore a backup of one week ago without losing his last email. Would it be possibile to restore the email to a temporary mailbox temp_aa@bb.com?
If restoring to the same account:
Does the restored content replaces and deleted the current mail contained in the mailbox at the time it is restored?
Please sign in to leave a comment.