backintime icon indicating copy to clipboard operation
backintime copied to clipboard

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

Open ntropia2 opened this issue 6 years ago • 3 comments

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

ntropia2 avatar Mar 20 '18 17:03 ntropia2

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

Germar avatar Apr 11 '18 20:04 Germar

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.

emtiu avatar Sep 12 '22 14:09 emtiu

Related to redesign the schedule section #1449

buhtz avatar Jun 04 '24 14:06 buhtz