bit-team / backintime

Back In Time - An easy-to-use backup tool for GNU Linux using rsync in the back
https://backintime.readthedocs.io
GNU General Public License v2.0
2.01k stars 197 forks source link

How to make snapshots on custom schedule (manual crontab entry) #881

Open ntropia2 opened 6 years ago

ntropia2 commented 6 years ago

I think my issue is similar to another issue [1]. It would be great if BiT would be able to extend the support for the crontab format, and allow backups to run only on business days, e.g. "0 0 1-5".

I would imagine this is a rather common scenario, when people don't alter files over the weekend, so it is possible to save the backup disks some wearing.

I can always edit the crontab manually, but it gets constantly overwritten by BiT.

Thanks a lot for the great work!

[1] https://github.com/bit-team/backintime/issues/880

Germar commented 6 years ago

Just deactivate the schedule and add you crontab line manually without removing the other lines in crontab. This should keep your custom lines.

emtiu commented 1 year ago

This has been answered above (and here: https://github.com/bit-team/backintime/issues/880#issuecomment-380594251), but I think it's something that should be documented, or maybe even shown in the GUI.

I can imagine that users might wonder: "If backintime simply uses good old contab for scheduling, how can I define my own custom schedule by writing my own crontab line?"

I could even imagine a "custom contrab schedule" feature, where you could enter your own scheduling code (like 0 0 * * Mo-Fr) in the GUI, but it would probably be tricky to verify and sanitize the user input.

buhtz commented 3 months ago

Related to redesign the schedule section #1449