- Plesk for Linux
How to check if a Plesk backup is valid for restoration?
Connect to a Plesk server via SSH.
Run the following command to validate the backup file structure. Replace backup_info_1809291722.xml with an actual backup xml file name:
Note: The command validates only backup structure.
# plesk bin pleskrestore --check-backup /var/lib/psa/dumps/backup_info_1809291722.xml
If a backup file has been uploaded via FTP, specify the full path to the .xml.tar file:
# plesk bin pleskrestore --check-backup /root/backup_info_1809291722.xml.tar
PLESK_INFO: The backup file is valid.
The backup is valid for restoration.
PLESK_INFO: The specified backup file is corrupted, modified, created on another server or in an earlier Plesk version. To restore it, use the -ignore-sign option.
In case the backup was created on another Plesk server, restore it according to this KB article.
PLESK_INFO: Unable to import file as dump: The file you are trying to upload is not a valid backup file
While the backup is not entirely valid, individual files (e.g. databases) still can be restored from it if needed.