Plesk

How to restore mail accounts from a full domain backup to Plesk?

Question

How to restore email accounts from a Plesk backup?

Answer

 

Restoring mail data via Plesk interface

 

  1. Log in to Plesk.

  2. Go to Domains > example.com > Backup Manager.

  3. Click on a backup from which you want to restore mail data.

  4. For What do you want to restore? select Selected objects.

  5. Set the type of object - Mail account.

  6. Select an email account from the list and click on it to move to the selected list.

  7. Click OK to start the restoration.

 

Restoring mail data via a command-line interface

 

  1. Connect to the server via SSH.

  2. List all available Plesk backups:

    # /usr/local/psa/admin/bin/pmm-ras --get-dump-list | grep .xml:

  3. 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

 

Exit mobile version