• Article for your preferred language does not exist. Below is international version of the article.

Article ID: 116792, created on Aug 16, 2013, last review on Jun 16, 2016

  • Applies to:
  • Plesk

Question

How to restore client's backup in case if backup has been created under customer and it is required to restore it on another Plesk server? The initial server is not accessible any more.

Answer

Restoring of backups which is not created through exporting is not officially supported. Check KB #113252 Plesk Server Backup Script to get information how to create backups properly.

However as a workaround steps below can be applied:

  1. Find out customer name and GUID on source server. Find a line in file backup-client1_customer1_info_1307151439.xml like below:

    <client skin="Vista" name="customer1" contact="customer1" guid="1d5fb49f-e9c2-4371-b7e3-ad75af1e3baa" id="2" owner-guid="2f8c9301-70cf-4568-abd9-d718dee8828d" cr-date="2013-07-12">
    

    name="customer1" is required information

  2. Create a customer with the same name as on destination server. The newly created customer will have a different GUID and owner's GUID as opposed to GUIDs in backup.

  3. Determine the current GUID of customer and its owner on the destination server in clients table:

    # MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin psa
    mysql> select id,login,guid,parent_id from clients;
    +----+-----------+--------------------------------------+-----------+
    | id | login     | guid                                 | parent_id |
    +----+-----------+--------------------------------------+-----------+
    |  1 | admin     | 2f8c9301-70cf-4568-abd9-d718dee8828d |      NULL |
    |  2 | customer1 | 1d5fb49f-e9c2-4371-b7e3-ad75af1e3baa |         1 |
    +----+-----------+--------------------------------------+-----------+   
    

    From output above customer with login customer1 has GUID 1d5fb49f-e9c2-4371-b7e3-ad75af1e3baa. Client's owner is admin because parent_id=1 which is refers to admin user with GUID 2f8c9301-70cf-4568-abd9-d718dee8828d.

  4. So apply appropriate changes in .xml file and perform backup restoration.

    <client skin="Vista" name="customer1" contact="customer1" guid="1d5fb49f-e9c2-4371-b7e3-ad75af1e3baa" id="2" owner-guid="2f8c9301-70cf-4568-abd9-d718dee8828d" cr-date="2013-07-12">
    

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF