Restore on Docker desktop fails for version difference #7057
Replies: 1 comment
-
I don't know if this is a bug or not but after i made the exact same procedure for 3 times, the last time it imported the content. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The source version is "PostgreSQL 11.16 (Debian 11.16-1.pgdg90+1) on x86_64-pc-linux-gnu" and the windows destination is "PostgreSQL 15.6 on x86_64-pc-linux-musl, compiled by gcc (Alpine 13.2.1_git20231014) 13.2.1 20231014, 64-bit"
I followed the procedure from the docs regarding the backup and restore and i am getting the pg_restore: error: expected format (1) differs from format found in file (8) error message.
I got it working by exporting the database as plain SQL with the command:
docker exec db pg_dump -U wiki -F p wiki > wikibackup.sql
My question is, why it fails restoring a dump from an older version? I suppose it shouldn't be a problem. Correct?
Both Wiki's are on the latest version.
Beta Was this translation helpful? Give feedback.
All reactions