Streaming Incremental Backup Configuration with PostgreSQL 17 using Docker Sidecar #1067
Unanswered
stephane-klein
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
ping @martinmarques |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
(This note in french: https://notes.sklein.xyz/2025-02-13_1450/zen/)
In the
poc-barmanrepository, I'm trying to use barman in a Docker sidecar container to backup a PostgreSQL container.One of my constraints is to make minimal changes to the PostgreSQL container that I want to backup. I want to be able to use a mainstream Docker PostgreSQL image https://hub.docker.com/_/postgres, without modifications.
I want to use the barman backup mode called
streaming backups method:backup_method = postgreswhich is based on thepg_basebackupcommand (official command integrated into PostgreSQL).I want to use the new
pg_basebackup --incremental...feature from PostgreSQL version 17.Here is my barman configuration: https://github.com/stephane-klein/poc-barman/blob/4df58ecc5af6d2d1f7607c364400f8c5ba012496/docker-compose.yml#L15
And here is my PostgreSQL 17 configuration:
I implemented a script called
./scripts/reset.shthat performs an end-to-end test automatically.Here's its screencast: https://www.youtube.com/watch?v=d2Iqw8KppCY
Here's what it does:
postgres1andbarmancontainers and injects some data intopostgres1barmanpostgres1postgres2, startspostgres2, and displays the data from thedummytablepostgres1postgres1backup usingpg_combinebackuptopostgres2which was previously stopped and erasedpostgres2based on the incremental backup restorationQuestions:
Best regards,
Stephane
Beta Was this translation helpful? Give feedback.
All reactions