Conflict Resolution Rules and Policies

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

Types of Conflicts

The restoration process can encounter several types of conflicts, as follows:

Conflict Resolutions

The following conflict resolutions options are possible:

Conflict Resolution Policies and Rules

Depending on the scope of a conflict resolution, we distinguish between 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 not resolve all the conflicts that occur. In such cases, the person performing the restoration 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.

A simplified presentation of conflict resolving during restoration is as follows:

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

    If all conflicts are resolved, the restoration continues.

  4. pleskrestore stops the restoration and, if run in debug or verbose mode, returns a detailed description (in XML format) of each remaining conflict.
  5. Based on the returned description of the conflicts, the administrator creates a file that defines a resolution for each conflict (with rules) and/or in bulk (with custom policies).
  6. The administrator runs the pleskrestore utility with the --conflicts-resolution option and the file created in the previous step as its argument.
  7. pleskrestore detects the conflicts that have occurred and resolves them using 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 remaining conflicts.
  9. pleskrestore checks whether any conflicts remain unresolved.

Next in this section:

Custom Conflict Resolutions