How to verify an invalid Plesk backup file

Created:

2016-11-16 13:00:36 UTC

Modified:

2017-04-24 12:00:29 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to verify an invalid Plesk backup file

Applicable to:

  • Plesk 11.0 for Windows
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Windows
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Windows
  • Plesk 12.5 for Windows

Symptoms

A new backup is shown on the Backup Manager page. However, it is marked with a red circle and the following pop-up message is shown when you hover the mouse over the circle:

This is not a valid backup. Data cannot be restored from this file.

The following errors may also be observed:

info_1309071511-formatted.xml fails to validate

<description>The dump has wrong format!</description>

Cause

The backup description contains invalid records, causing the backup to fail XML validation.

Resolution

The backup XML description file should be validated with the backup XML schema. This will help to find problem objects in the Plesk configuration database and fix inconsistencies, which cause the XML file to become invalid.

  1. Install the xmllint utility to help you validate XML files:

    • Download xmllint.zip
    • Create the C:\\xmllint directory
    • Unpack the archive into C:\\xmllint
  2. Find the XML backup file in the Parallels Plesk (Plesk) backup repository.

    For example, if the backup name in the Plesk GUI is test_info_1004281551.xml and Plesk uses the local repository, then the file will be at " %plesk_dir%\\Backup\ est_info_1004281551.xml ".

  3. Using xmllint , reformat the XML file to be more easily readable:

    c:\\xmllint\\xmllint.exe --format --encode UTF-8 test_info_1004281551.xml > test_info_1004281551_formated.xml
  4. Validate the formatted file:

    c:\\xmllint\\xmllint.exe --noout --schema "%plesk_dir%\\PMM\\plesk.xsd" "%plesk_dir%\\Backup\   est_info_1004281551_formated.xml"

    If you get an error as below, use the solution from the article #213373809 and remove Envelope elements from the file:

    element Envelope: Schemas validity error : Element '{urn:envelope}Envelope': No matching global declaration available for the validation root.

    Then validate the backup file again:

    C:\\xmllint\\xmllint --noout --schema "%plesk_dir%\\PMM\\plesk.xsd" "%plesk_dir%\\Backup\   est_info_1004281551_formated.xml"
Have more questions? Submit a request
Please sign in to leave a comment.