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
-
Hello,
(This note in french: https://notes.sklein.xyz/2025-02-13_1450/zen/)
In the
poc-barman
repository, 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 = postgres
which is based on thepg_basebackup
command (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.sh
that performs an end-to-end test automatically.Here's its screencast: https://www.youtube.com/watch?v=d2Iqw8KppCY
Here's what it does:
postgres1
andbarman
containers and injects some data intopostgres1
barman
postgres1
postgres2
, startspostgres2
, and displays the data from thedummy
tablepostgres1
postgres1
backup usingpg_combinebackup
topostgres2
which was previously stopped and erasedpostgres2
based on the incremental backup restorationQuestions:
Best regards,
Stephane
Beta Was this translation helpful? Give feedback.
All reactions