0

When trying to run pg_basebackup I received the following error message:

pg_basebackup: could not set compression level -1 (null)

using the -z option. I received a similar error message when trying -Z #.

1 Answer 1

0

I tried the command without a compression option and received this error message:

pg_basebackup: could not create file "/dir/names/base.tar": Permission denied

which revealed that the destination directory was not writable for the user. Changing permissions or ownership solved the problem.

Unfortunately, the original error message was not as informative as it could have been.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.