To restore data from a backup file:
/plesk_installation_directory/bin/pleskrestore --create-map <backup file name> -map <map file name>
If you have a multivolume backup, you should specify the first volume as the <backup file name>.
A mapping file will be generated and saved to the specified location. In most cases you will not need to edit this file: you will need to review its contents and specify mapping for items only if you fail to restore data from a backup due to object conflicts (for example, the range of IP addresses listed in the backup file is different from those available on the server), or if you wish to specify individual objects that should be restored.
Note: for details on mapping, see the section Editing a Mapping File.
/plesk_installation_directory/bin/pleskrestore --restore <backup file name> -level all -map <map file name>
where <backup file name> is the name of the backup file or—if you have a multivolume backup—the name of the first volume, and <map file name> is the mapping file name.
/plesk_installation_directory/bin/pleskrestore --restore <backup file name> -level clients -map <map file name>
where <backup file name> is the name of the backup file or—if you have a multivolume backup—the name of the first volume, and <map file name> is the mapping file name.
/plesk_installation_directory/bin/pleskrestore --restore <backup file name> -level clients -filter list:client_name1,client_name2,client_name3 -map <mapping file name>
where <backup file name> is the name of the backup file or—if you have a multivolume backup—the name of the first volume, and <mapping file name> is the mapping file name.
/plesk_installation_directory/bin/pleskrestore --restore <backup file name> -level clients -filter list:client_name -map <mapping file name>
where <backup file name> is the name of the backup file or—if you have a multivolume backup—the name of the first volume, and <mapping file name> is the mapping file name.
/plesk_installation_directory/bin/pleskrestore --restore <backup file name> -level clients -filter list:client_name1,domain1.com,domain2.com -map <mapping file name>
where <backup file name> is the name of the backup file or—if you have a multivolume backup—the name of the first volume.
/plesk_installation_directory/bin/pleskrestore --restore <backup file name> -level domains -filter list:domain_name -map <mapping file name>
where <backup file name> is the name of the backup file or—if you have a multivolume backup—the name of the first volume.
Note: if you want to restore the data of a site backed up on another server, before doing so, make sure that the respective domain name is set up in Plesk. If it is not, add a new domain name through the control panel (without setting up a hosting account for it), and then run the aforementioned command.
Table 2. Pleskrestore utility commands and options.
Available commands |
||
Command |
Arguments and Syntax |
Description |
|
|
Analyzes the specified backup file and creates a mapping file under the specified name. |
|
|
Validates mapping file. |
|
|
Restores data from a backup file. |
|
|
Shows the available commands and options. |
Available options |
||
|
|
Specifies restoring level: clients restores user accounts, domains restores web sites, all restores all items from the backup file. |
|
|
Specifies objects for restoring: user accounts or web sites. |
|
|
Specifies that the license key from a backup file should be restored. |
|
|
Path to the mapping file. |
|
|
Shows the information about restoring progress. |