Ronan0's picture

In the documentation, I only see cron.daily and cron.hourly type scheduling used.

Can one use crontab for example? How would this be done?

Or what would be the recommended way to do it.


Jeremy Davis's picture

Essentially they are doing the same thing but just loaded in a slightly difference manner. I'm not expert but AFAIK cron.daily/hourly does not load any environment variables; whereas crontab uses the environment of the user that it runs from.

So as a general rule, so long as the user the crontab is set up with has the required level of access (root for a TKLBAM job) then a cron.hourly/daily job should be fine as a crontab job; whereas if a job was originally set up to use crontab, it may not work as expected as a cron.daily/hourly job...

But TBH I'm not 100% sure. Why not have a play and see what works best for you?

Keep in mind too that if you are making the incremental backups more regular you'll probably also want to make the full backups more regular too. The longer the incremental backup chain gets, the more "fragile" it becomes.

Regarding the format, I'm not familiar enough to give you any OTTOMH guidance so I suggest that you have a read of some docs. Google turned up this page. It's actually for Ubuntu but Turnkey is Debian based which is what Ubuntu is also based on so should be near enough IMO...

Ronan0's picture

Ok, thanks for that.

So just to set out what I think I will do - I will leave tklbam-backup where it is, where it is run each morning, and then add an extra backup via my (root) crontab with the entry:

15 13 * * 1-5 /etc/cron.daily/tklbam-backup

I.e. Also run the existing tklbam-backup file every day at lunch time, Mon-Fri.

Before I do some testing, does that seem like a reasonable thing to do?

Thanks again. Ronan.

Jeremy Davis's picture

THat sounds totally reasonable to me. Please post and let us know how it goes.

Add new comment