How to skip pruning when running from systemd timer #775
Labels
No labels
blocked
breaking
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 a new issue
No description provided.
Delete branch "%!s()"
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.timerwhich executesborgmatic.serviceis a great way to automate backups in the background. The way I understand it, the timer calls the service, which runsborgmaticwithout 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:
ExecStartandExecStartExfrom/usr/bin/borgmaticto/usr/bin/borgmatic create checkIs 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.