Skip to content

Documentation: Differential Backup Using Borgmatic#81

Open
f-seidler wants to merge 7 commits intosciapp:developfrom
f-seidler:develop
Open

Documentation: Differential Backup Using Borgmatic#81
f-seidler wants to merge 7 commits intosciapp:developfrom
f-seidler:develop

Conversation

@f-seidler
Copy link

I have added documenation for creating differential backups to the "Backup and Restore" section of the "Administrator Guide". The steps described there are derived from documentation for the borgmatic tool and adapted to the specific case of sampledb. I'm including two sample configuration files as codeblocks. They are intended for a development setup, not production.

I have tested the steps I describe locally under wsl with sampledb 0.32. I am also successfully running a similar configuration on a production system with the same sampledb version.

I successfully compiled the documentation with the proposed changes.

Added documentation for differential backup and restore using borgmatic.
V 0.33 added differential backup documentation
Copy link
Member

@FlorianRhiem FlorianRhiem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, I've added a few comments to the changes.

f-seidler and others added 5 commits February 4, 2026 14:07
Adding the links is a great idea.

Co-authored-by: Florian Rhiem <florian.rhiem@gmail.com>
Agreed.

Co-authored-by: Florian Rhiem <florian.rhiem@gmail.com>
Sorry for the typo.

Co-authored-by: Florian Rhiem <florian.rhiem@gmail.com>
Co-authored-by: Florian Rhiem <florian.rhiem@gmail.com>
Reworked initial pull request accroding to the comments.
@f-seidler
Copy link
Author

I think, I resolved all issues with the example code and explanations. Please, check if everything is appropriately addressed.

.. code-block:: bash

docker exec -it backup borgmatic --verbosity 1 init --encryption repokey

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of "backup" i needed the container id.

hostname: db
port: 5432
# Remember to set username and password to the same values as in the compose file
username: postgres

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add also in the docker-compose.yml the default username. For a moment I thought about have I kept the default ;)

Copy link

@ReimarBauer ReimarBauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is a redirect in a file needed.

The storing part tested, I expect restoring does also work.

.. code-block:: bash

docker exec -it backup borg key export --paper /mnt/borg-repository/repo encrypted-key-backup.txt

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docker exec -it backup borg key export --paper /mnt/borg-repository/repo > encrypted-key-backup.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants