-
How-to guides
- π₯ Set up backups
- π Make per-application backups
- π Provide your passwords
- βοΈ Make backups redundant
- π Deal with very large backups
- π Inspect your backups
- π¨ Monitor your backups
- π€ Extract a backup
- ποΈ Backup your databases
- π§Ή Add preparation and cleanup steps
- πΎ Backup to a removable drive/server
- π§ Run arbitrary Borg commands
- π¦ Upgrade borgmatic/Borg
- ποΈ Develop on borgmatic
- Reference guides
getting oriented
If case you're interested in developing on borgmatic, here's an abridged primer on how its Python source code is organized to help you get started. At the top level we have:
- borgmatic: The main borgmatic source module. Most of the code is here.
- docs: How-to and reference documentation, including the document you're reading now.
- sample: Example configurations for cron and systemd.
- scripts: Dev-facing scripts for things like building documentation and running end-to-end tests.
- tests: Automated tests organized by: end-to-end, integration, and unit.
Within the borgmatic
directory you'll find:
- actions: Mid-level code for running each borgmatic action (create, list, check, etc.).
- borg: Lower-level code that actually shells out to Borg for each action.
- commands: Looking to add a new flag or action? Start here. This contains borgmatic's entry point, argument parsing, and shell completion.
- config: Code responsible for loading, normalizing, and validating borgmatic's configuration.
- hooks: Looking to add a new database or monitoring integration? Start here.
So, broadly speaking, the control flow goes: commands
β config
followed by commands
β actions
β borg
and hooks
.
Improve this documentation
Have an idea on how to make this documentation even better? Use our issue tracker to send your feedback!