Autopilot - How to handle Backups taking longer than Schedule #746
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#746
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?
What I'm trying to do and why
I am trying to Automate my Backups using Cron or Systemd.
The question I asked myself was how to make sure that the backups don't get in each other's way.
For example if my schedule is hourly what should i do if the Backup takes longer than that?
Should i kill the borg/borgmatic process beforehand and then remove the log when my Backup starts again?
Steps to reproduce
No response
Actual behavior
No response
Expected behavior
No response
Other notes / implementation ideas
No response
borgmatic version
No response
borgmatic installation method
No response
Borg version
No response
Python version
No response
Database version (if applicable)
No response
Operating system and version
No response
borgmatic doesn't have any formal support for this use case, but my recommendation would be: Allow the occasional long-running backup to complete without being disturbed. I'm not sure you'd gain a whole lot by killing it and starting a new backup, and you may actually make things worse if a complete backup never finishes because it gets killed once an hour. Also note that if you're using a systemd timer, I believe it already takes care of this for you. From the systemd timer docs:
I hope that helps!
Great hint, i am gonna use this. Thanks
Sounds good!