[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#71639] [PATCH WIP 0/5] Improve on restic-backup-service
From: |
Richard Sent |
Subject: |
[bug#71639] [PATCH WIP 0/5] Improve on restic-backup-service |
Date: |
Tue, 18 Jun 2024 18:06:39 -0400 |
Hi all!
This is the previously promised [1] patch series relating to
restic-backup-service. The highlights:
1. init? was added that bootstraps a new backup.
2. RESTIC_PASSWORD_COMMAND support.
3. Add extra-packages field for jobs.
4. Move restic from restic-backup-job to restic-backup-configuration.
5. Add a basic system-level test suite.
Regarding 4, the previous way felt a bit orthogonal to how services of a
similar nature work. (For example, you don't specify an mcron package for
every job.) I can't think of a use case for mixing-and-matching restic
packages with different jobs. If there is a reason, I think a good compromise
would be a "restic-override" job field.
I'm marking this as WIP because there are a couple more things I want to
investigate, but it feels complete enough to submit for feedback. My main
point of interest is what can be done to improve support for Restic's other
backends, see [2]. I imagine 0.9.6 only supports a subset of those, but still.
In my dream world we could combine this patch with an upgrade to the restic
package itself (which, among other things, supports compression). I asked the
developers about (re)including a vendor directory in their tarball but haven't
heard back [3]. Perhaps this service can spark some action on an old Guix
tracking issue [4].
[1]: https://issues.guix.gnu.org/69513#7
[2]: https://restic.readthedocs.io/en/stable/030_preparing_a_new_repo.html
[3]: https://github.com/restic/restic/issues/3945#issuecomment-2141090355
[4]: https://issues.guix.gnu.org/63019
Richard Sent (5):
services: backup: Support bootstrapping an initial restic backup
services: backup: Add password-command support to restic-service
services: backup: Add extra-packages field to restic-backup-job
services: backup: Move restic package to restic-configuration
tests: Add restic system test.
doc/guix.texi | 21 ++++++-
gnu/services/backup.scm | 131 +++++++++++++++++++++++++++++-----------
gnu/tests/restic.scm | 124 +++++++++++++++++++++++++++++++++++++
3 files changed, 238 insertions(+), 38 deletions(-)
create mode 100644 gnu/tests/restic.scm
base-commit: a575d0f5d5322bac977423b6bd2742c8dc5a14a6
--
2.45.1
- [bug#71639] [PATCH WIP 0/5] Improve on restic-backup-service,
Richard Sent <=
- [bug#71639] [PATCH WIP 1/5] services: backup: Support bootstrapping an initial restic backup, Richard Sent, 2024/06/18
- [bug#71639] [PATCH WIP 2/5] services: backup: Add password-command support to restic-service, Richard Sent, 2024/06/18
- [bug#71639] [PATCH WIP 5/5] tests: Add restic system test., Richard Sent, 2024/06/18
- [bug#71639] [PATCH WIP 3/5] services: backup: Add extra-packages field to restic-backup-job, Richard Sent, 2024/06/18
- [bug#71639] [PATCH WIP 4/5] services: backup: Move restic package to restic-configuration, Richard Sent, 2024/06/18