How to skip pruning when running from systemd timer #775
Labels
No Label
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: borgmatic-collective/borgmatic#775
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi!
The systemd service
borgmatic.timer
which executesborgmatic.service
is a great way to automate backups in the background. The way I understand it, the timer calls the service, which runsborgmatic
without any action which defaults to prune, create, check. However, in my scenario I want to prevent clients to prune backups (I'm using append-only and I want to prune on the backup server only).The man page states:
But this does not apply for the default systemd service.
I see the following possibilities to achieve this:
ExecStart
andExecStartEx
from/usr/bin/borgmatic
to/usr/bin/borgmatic create check
Is there a smarter way to achieve this?
This is Debian 12, borgmatic 1.7.7
Best,
Kalsan
The options you've outlined are really pretty much it at this point. However here's a not-yet-implemented ticket that I think you'll be interested in: #701. That's probably the "smarter" way to achieve this.
@witten Thank you very much for your blazingly fast answer! Indeed that would be a good solution. Closing in favor of #701
Conclusion: As editing the systemd service appeared to have no effect (likely my fault), the solution I chose and that is working well is:
Hope this helps anyone coming across this.