-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hourly backups #200
Comments
The reason I didn't add this from the start, was the limited scheduling options I had cross-platform.
Launchd is indeed more flexible and programmable; unlike Cron. Adding hourly is not impossible, especially since the cron version is already probing hourly for the reasons quoted above, but going any granular than that, say every other day, specific day or hour, etc.. should stay out of scope for the GUI and best left for the command line version. Going hourly though, would imply that the Launchd service has to be fired hourly too just like cron, which is not the case now. It only fires once a day at 10AM and is aware if an invocation has been skipped due to system down-time, sleep, etc for the designated hour and will be launched retro-actively in a coalescing manner of course. Thus the daily granularity. :) Quote above is from: |
Yeah, but nobody uses Linux or FreeBSD anymore. More seriously, tarsnap-gui could install a service (daemon) instead of a daily launchd task, then run in a daemon mode. Then the daemon can spawn |
Sorry, I'll stop joking around. I just realized I misread your reply completely. It's 2:40am and I was distracted. (I have a dumb sense of humor anyway.) That's good news. A 30min interval sounds reasonable. I think it'd be easy to change the .plist so that it fires that fast. I was also thinking that Tarsnap.app could just copy the plist to ~/Library/LaunchAgents every time it starts up. That way newer versions should "just work". |
I agree that it would be nice to support much more flexible backups (not only hourly, but also every other day, etc.). I'm taking a cautious approach, though. Here's a few questions I'm considering and will be looking into before I'm comfortable progressing further:
These questions aren't impossible to answer, of course, but right now I give the test suite higher priority than scheduling. |
It might make sense to let certain jobs be scheduled hourly rather than daily, especially if a directory is being replicated to some other machine. I could add this, if it'd be useful.
The text was updated successfully, but these errors were encountered: