magfan wrote:I have a similar task but I am using systemd for it. If you want to use systemd you may try the following:
1. put your backup script "calendar_backup.sh" in /usr/bin/
From a system administration standpoint I would suggest that it would be better to use /usr/local/bin for custom scripts and whatnot.
The first benefit is you can backup /usr/local/, do a clean install and restore /usr/local/ and you are good to go.
Mixing custom code in /usr/bin will make clean installs plus your changes/additions laborious and you would be wasting backup space/time. with the other possible 3,000+ files. Then there is the chance that a new package has the same name as you script and the next update of that package would wipe out your script.
If you were to look the results of "echo $PATH", you might notice that /usr/local/bin is before /usr/bin. The nice feature about that is whatever you place there super creeds the same file in /usr/bin.