Restoring Your Data

To restore data from a backup file:

  1. Generate a file that defines mapping of items (user accounts, sites, and so on) stored in the backup file to the items currently served by your Plesk hosting platform. To do this, run the following command from the command line:

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

  2. Restore the data you need.

Table 2. Pleskrestore utility commands and options.

Available commands

Command

Arguments and Syntax

Description

--create-map

backup file name mapping file name

Analyzes the specified backup file and creates a mapping file under the specified name.

--validate-map

backup file name mapping file name

Validates mapping file.

--restore

backup file name

Restores data from a backup file.

--help or -h

 

Shows the available commands and options.

Available options

-level

clients, domains, or all

Specifies restoring level: clients restores user accounts, domains restores web sites, all restores all items from the backup file.

-filter

mapping file name or list: item1, item2, item3

Specifies objects for restoring: user accounts or web sites.

-license

 

Specifies that the license key from a backup file should be restored.

-map

mapping file name

Path to the mapping file.

-verbose

 

Shows the information about restoring progress.

In this chapter:

Editing a Mapping File