Conflict Resolution Rules and Policies

Conflict is a situation when settings in a backup and settings in a destination Plesk are such that restoring backup objects leads to an error or unpredictable Plesk behavior.

Types of Conflicts

The restoration process can encounter several types of conflicts, which are the following:

Conflict Resolutions

The following types of conflicts resolutions are possible:

Conflict Resolution Policies and Rules

Depending on the scope of a conflict resolution, we distinguish conflict resolution rules and policies:

Conflicts Resolving Mechanism: Default Policies, Custom Policies, and Rules

The restoration utility brings a set of default, hard-coded conflict resolution policies, which are as follows:

The default policies are always applied during restoration and cannot be changed or overridden.

Applying default policies may resolve not all the conflicts occurred. In such cases, those who perform restore should additionally define custom rules and/or policies that resolve the remaining conflicts. Custom rules and policies are defined in an XML format as described in the section Resolutions Description Format.

Simplified presentation of the conflicts resolving during restore is as follows:

  1. Administrator runs pleskrestore with specific parameters.
  2. pleskrestore detects the conflicts occurred and resolves them with the default policies.
  3. pleskrestore checks if any conflicts remain unresolved.

    In case all conflicts are resolved, the restoration continues.

  4. pleskrestore stops the restoration and, if run in debug or verbose mode, returns detailed description (in XML format) of each remaining conflict.
  5. Basing on the returned description of the conflicts, administrator creates a file that defines a resolution for each conflict (with rules) and/or in bulk (with custom policies).
  6. Administrator runs the pleskrestore utility with the --conflicts-resolution option and the file created at the previous step as its argument.
  7. pleskrestore detects the conflicts occurred and resolves them with the default policies.
  8. pleskrestore processes the remaining conflicts:
    1. pleskrestore applies resolution rules from the file.
    2. pleskrestore applies resolution policies from the file to the rest of the conflicts.
  9. pleskrestore checks if any conflicts remain unresolved.

Next in this section:

Custom Conflict Resolutions