Backing up my crontabs

I haven’t gotten around to replacing dcron with fcron yet. But today, as I was working on a little script that needs to add a cronjob, automatically, I realized that it might be a good thing to add another cronjob which only concerns itself with backing up the cronjobs themselves.

Pseudo-codeish something along the lines of

  1. determine if there is an earlier backup
  2. determine if that earlier backup differs from what the crontab looks like now
  3. if differing: make a new (date-organized) backup, otherwise do nothing

And make a cronjob out of it.

I feel I will have to put some more thought into this, but hopefully I could have something up and kicking before long. :)
:wq

Tags: ,

Comments are closed.