Troubleshooting
Problem
nzrestore fails with "Error while reading archiver header. Wrong/Missing entry magic PGDMP."
Symptom
The nzrestore command fails with the following error:
Error while reading archiver header. Wrong/Missing entry magic PGDMP.
Diagnosing The Problem
Running the nzrestore command requires the following argument: -dir <backup directory>. However, the command fails with the error above when the schema file is in a format that nzrestore cannot read.
Resolving The Problem
To resolve this error, do the following:
1. Run the following command to find any file named 'schema' within the directory structure:
find <backup directory> -name schema -ls
2. For any file found, rename it or relocate it to a completely different directory.
3. Rerun the nzrestore command.
Historical Number
NZ255189
Was this topic helpful?
Document Information
Modified date:
17 October 2019
UID
swg21571922