View Full Version : [ubuntu] Sbackup: help with custom cron time definition

March 1st, 2010, 10:15 PM
Well, don't usually have to create a thread for my questions, but here is something very specific.

I recently had a hard drive malfunction [lolz: computer got dropped bad... hd = dead]... Thankfully, I backup my documents daily to an additional source [independent of the hard drive]. However, I want to backup even more regularly, twice daily. Is there an easy way to set this using the custom cron time definition. A hint, I want simple backup enabled so that if the computer isn't turned on exactly at that time, it willl still update. Hopefully there is an easy way to do this.


March 3rd, 2010, 05:55 AM
cron's first two times refer to minutes after the hour, and the hour of the day. However, if you divide the day by a number instead of specifying an hour, it'll run after each specified interval. E.g.
#m h dom mon dow
* */2 * * *
would run twice a day. */4 would run every six hours. and so on.


March 3rd, 2010, 08:26 AM
Alright, thanks for that. I'll be sure to throw that in the sbackup, first thing in the morning.