4

I want to have a separate folders for cron jobs like:

/mydata/cronjobs

Now in that folder I want to have files like backup_server which will have the content like:

30 3 * * 1-5 /home/user/scripts/backup.sh 
30 3 * * 1-5 /home/user/scripts/backup2.sh 

Similarly, I want to have more files in that directory for each separate cron job so that I can centralize and separate the cron jobs from one folder.

How can I make root run those jobs for all files in that folder?

MOtaro Site
  • 193
  • 2
  • 3
  • 13
  • possible duplicate of [Why is my crontab not working, and how can I troubleshoot it?](http://serverfault.com/questions/449651/why-is-my-crontab-not-working-and-how-can-i-troubleshoot-it) – Jenny D Jul 22 '13 at 09:51

1 Answers1

4

Just put your files in the /etc/cron.d directory.

Michael Hampton
  • 237,123
  • 42
  • 477
  • 940