sprx97 / OldTimeHockey

Website and scripts for OldTimeHockey fantasy hockey league.
http://www.roldtimehockey.com
3 stars 5 forks source link

Find a way to store crontab in git #26

Closed sprx97 closed 5 years ago

sprx97 commented 6 years ago

The cadence of these scripts is important too.

Ideas: 1) Have crontab copy itself to the project folder on a regular basis 2) Make some sort of link to /etc/crontab in my project 3) Have the crontab execute a cron script stored in project folder

sprx97 commented 6 years ago

Option 3 might be best since I can separate out my OTH jobs from other jobs.

sprx97 commented 6 years ago

Option two looks out -- seems that hardlinks don't work in git. https://stackoverflow.com/questions/3729278/git-and-hard-links

sprx97 commented 6 years ago

Hard link worked!

sprx97 commented 6 years ago

Hard links stop cron from running, so that's out.

sprx97 commented 5 years ago

Not happening. this is way too much hacking for a tiny benefit. I've got backups of the server if anything happens anyway and its only like 5 cron jobs.