[ Solved ]
I'm need a little #FreeBSD advice as I'm only used to Linux. I'm writing a backup script which I'll have running automatically as root using crontab. My question is and it's a silly one. Where would be the best location for said script ?
*Puts fingers in ears to avoid hearing folk laughing*
I'm need a little #FreeBSD advice as I'm only used to Linux. I'm writing a backup script which I'll have running automatically as root using crontab. My question is and it's a silly one. Where would be the best location for said script ?
*Puts fingers in ears to avoid hearing folk laughing*
This entry was edited (2 months ago)
silverwizard
in reply to Justine Smithies • •@Justine Smithies The answer IMO is "look at man hier" and check out the layout and then make your own decisions.
Personally, I put them in /usr/local/bin
Tara 🌷
in reply to Justine Smithies • • •I'm a bit late to the party.... as always, I would say.
I created an /usr/local/libexec/cron/ and placed my scripts there via Ansible: an executable script in the above directory and a definition in /etc/cron.d/
That said, I believe there might be a need to clearify where such scripts should be placed. I'm not proposing this, but there's a clear indication in Linux with /etc/cron.[daily|weekly|monthly|yearly]. Would it be worth doing something like that?
Tara 🌷
Unknown parent • • •TIL /etc/periodic/[daily|weekly|monthly]
🥳