Best Practices for Installing Custom Scripts
-
I'm wondering what the best approach is for installing custom scripts for ease of maintenance (and if possible surviving an upgrade).
I want to run a couple of small scripts triggered by a cron job to do some custom logging.
Best place to store/run the script from?
How to best backup/restore the cron tab entry when doing an update (or a reinstall if the SSD dies)?
Thanks.
-
How to best backup/restore the cron tab entry when doing an update (or a reinstall if the SSD dies)?
Use the Cron package. That provides a GUI for you to add/modify cron jobs, which are saved in the config and the crontab is automatically created from the config.
I will let someone else suggest where is best to put your own scripts.
-
Thanks, that's half the problem solved. If someone could make a suggestion as to best practices for storing/backup/recovery of custom scripts that would be much appreciated.