Skip to content

[borgbackup] Add new role - #2434

Open
Alphix wants to merge 3 commits into
debops:masterfrom
Alphix:pr_add_borgbackup
Open

Alphix wants to merge 3 commits into
debops:masterfrom
Alphix:pr_add_borgbackup

Conversation

@Alphix

@Alphix Alphix commented Oct 10, 2023

Copy link
Copy Markdown
Contributor

Starting from @ypid's draft in PR #835 and hacking for a week, I reworked the draft version of the role to properly integrate it with other DebOps roles, making the setup much simpler for end users in the process.

Some notable features:

  • Updated (and simplified) docs
  • Encrypted passphrases (systemd-creds)
  • SPDX compliance
  • Group-based host roles (server/client/controller)
  • systemd (.timer/.service) and cron integration
  • systemd sandboxing
  • Modern compression/encryption choices
  • Automatic configuration of users/keys/authorized_keys/etc
  • Optional "append only" support

I've tested the various modes (client/server and client/server/controller), and it all works in my devel environment.

For now I've kept the PR as two patches (the draft I started from, rebased into one patch, and my changes as a separate patch). I could rebase this into a single patch, but I wanted to make the provenance clear.

Closes: #792
Closes: #835

@Alphix

Alphix commented Oct 10, 2023

Copy link
Copy Markdown
Contributor Author

@ypid: this should interest you 😁

ypid and others added 2 commits October 15, 2023 11:19
This patch reworks the role started by ypid by updating the docs,
integrating better with other roles, bringing the use of borg
and borgmatic up to current standards, and making use of various
facilities offered by systemd to sandbox the clients as much as
possible.
@Alphix
Alphix force-pushed the pr_add_borgbackup branch from 9fbae59 to c3baf34 Compare October 15, 2023 09:19
@Alphix

Alphix commented Mar 1, 2024

Copy link
Copy Markdown
Contributor Author

Actually....I think this needs some minor rework. The current template for the borgmatic configuration (ansible/roles/borgbackup/templates/etc/borgmatic/config.yaml.j2) doesn't properly handle complicated YAML syntax (e.g. checks:, which expects a list of dicts)

tasosalvas added a commit to tasosalvas/debops that referenced this pull request Apr 24, 2024
- This commit is debops#2434 by Alphix
- Originally debops#835 by ypid
tasosalvas added a commit to tasosalvas/debops that referenced this pull request May 8, 2024
- This commit is debops#2434 by Alphix
- Originally debops#835 by ypid
@tasosalvas tasosalvas mentioned this pull request May 9, 2024
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.

Create a 'debops.borgbackup' role

2 participants