Idea: Configuration may include when to backup #616
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#616
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?
Rather than defining when to backup in the external tool like cron or systemd, we could define it in the configuration file(s). And every hour I can run borgmatic with systemd . Borgmatic could check the backup schedule defined in the configuration file, and determine if its necessary to backup and proceed accordingly.
What do you think? (This is how backintime works, it let user define the scheduling in the configuration itself and then edits the crontab. I am not asking you to edit crontab, but it would be nice if boegnmatic can determine if backup is necessary or not).
We could have a separate option for forced backup to disregard the schedule.
Thanks for filing this! On the one hand, I generally would like to avoid reinventing cron/systemd. On the other hand, the feature you described is basically how the consistency check frequency feature already works. (There's even an existing
--force
option to disregard the schedule.) And so it wouldn't be a big stretch—either technically or in terms of feature creep—to extend such functionality to backups.I think my main question at this point is the why behind this ask. Is it just more convenient to do scheduling in borgmatic's configuration than via systemd?
I think its ok, users can use external tools like cron and systemd as you said. I saw the systemd service, systemd timer.
I was wondering of a use case that one can have a schedule to be backed up on external harddrive. And if the external drive is not always available, and the schedule was missed then the backup could start immediately when the drive is plugged. This is how backintime used to function.
Got it. Are you aware of the existing borgmatic support for occasional backups? That's intended to support a use case just like what you describe—a backup repository (or source directory) that's not always available. But it sounds like you'd like scheduling layered on top of that?
Just checking in again on this one. It sounds like you're wanting to go a little beyond scheduling capabilities in borgmatic and perhaps run it as a daemon process that waits until a configured removable drive is plugged in and then initiates a backup? I'm guessing that's because this is just more convenient than manually running borgmatic whenever the drive is plugged in?
I am satisfied with your previous reply and with the current reply. We can close this issue. Thank you.