BlogTroubleshootingRestore

Restore fails verification: “The backup archive is damaged”, “changed after it was made” and other refusals

Why Restora refuses to restore a backup before touching the site, what each verification message means (checksum mismatch, not a Restora backup, made by a newer version, wrong password or private key) and how to get a good copy.

4 min readPerforks

Archive entries checked one by one, with one that fails and stops the restore before anything changes

“Checking the backup before anything is changed” is the first step of every restore, and it is the step that fails when the archive is not what it should be. That is by design: a refusal here costs you nothing, while a restore from a damaged archive could cost you the site. These are the messages you may see and what each one means.

The archive is damaged or incomplete

  • “The backup archive could not be opened. It may be incomplete or damaged.” The zip's table of contents cannot be read. A download or upload that ended early is the usual cause: compare the file size with the one in the Restora list, and download or upload again (downloads and uploads both resume).
  • “The backup archive is damaged (checksum mismatch: …)”, “(entry shorter than expected: …)” or “(unreadable entry: …)”. One file inside the archive does not match the SHA-256 recorded in the archive's index when it was made. The copy was corrupted on the way (a transfer in text mode, a disk error, a storage service that returned the wrong bytes). Use another copy: the original on the server, or the one on your remote storage.
  • “The backup archive is missing part of the database.” or “The database dump in this backup is cut short.” Same cause, same answer.

The archive was altered

“This backup was changed after it was made …” Restora records a digest of every backup it makes on this site; a copy that comes back from remote storage or from a download with a different digest is refused, even if every entry's checksum is internally consistent. Someone or something rewrote the archive. Get the copy from a place you trust, or, if you edited the zip on purpose, accept that Restora will not restore an edited archive on this site.

Related refusals from the same check: “The archive contains an unsafe path and was rejected: …” (an entry that would write outside the site), “This encrypted backup contains a file that is not encrypted (…)”, and for the database: “The database dump in this backup contains a statement Restora does not recognise.” or “… contains a row Restora did not write, in the table …”. A restore accepts from a backup's database only what Restora itself writes, plain table definitions and plain rows, so a dump that was edited by hand is refused before anything changes.

It is not a Restora backup, or a newer one

  • “This archive is not a Restora backup.” The zip has no .restora/manifest.json. A zip made by another tool, or by zipping the site by hand, cannot be restored by Restora. When uploading, the message is “This file is not a Restora backup. Choose a .zip that Restora made (its name starts with restora- or with the site's address).”
  • “This backup was made by a newer version of Restora. Update the plugin first.” Update Restora on this site and try again.
  • “The backup does not contain what you asked to restore.” A database-only backup cannot restore files, and the other way round. Check the backup's Details.
  • “None of the chosen tables is in this backup.” (Pro, selective restore) Reload the page and choose again.

Wrong password or key

  • “This backup is encrypted. Enter its password.” No password was given and none is stored. Enter it, or set RESTORA_PASSWORD for WP-CLI.
  • “The password is not right for this backup.” Passwords are kept exactly as typed, including spaces; check for a trailing space in the password manager.
  • “This private key does not open this backup.” The backup was locked with a different key pair than the key you pasted. Each backup opens only with the pair that was active when it was made; if you have created more than one pair, try the other private keys.
  • “This private key is not complete. Paste the whole key, starting with RESTORA-SK1-”. Paste it again from the file you saved.
  • “This backup is not locked with a key. Enter its password.” You pasted a private key, but this backup used a password.
  • “This server cannot open backups locked with a key: PHP has no sodium extension. Restore on a server with PHP 7.2 or later.”

The server, not the archive

  • “Nothing was changed: the restore needs about 900 MB of free disk space and the server has 400 MB.” Free space first; the restore has not touched the site.
  • “Nothing was changed: these folders cannot be written to by the web server: …” Fix the permissions on the named folders.
  • “The PHP zip extension is missing …”, “The PHP pdo_mysql extension is missing …”: ask the host.
  • “Could not read wp-config.php to find the database settings.” or “Could not connect to the database: …”: the restore engine runs outside WordPress and reads the database details from wp-config.php; make sure the file is readable and the details are current.

Whatever the message, a restore that is refused at verification has changed nothing: the files and the database are exactly as they were. Nothing has to be undone.