Backup works, but not in crontab...
Posted: Sunday 24 December 2017 13:07
Hi,
Anyone has an idea where this goes wrong?
I used the bash script to backup to my NAS. This works fine if I use the manual command:
However, I want to have it run daily in crontab. The following command however appears not to work, and I discovered it too late, after my system crashed last night and I dont have a recent backup
Other crontab commands work fine.
Domoticz_Backup.sh was made executable by the way
Anyone has an idea where this goes wrong?
I used the bash script to backup to my NAS. This works fine if I use the manual command:
Code: Select all
sudo ~/domoticz/scripts/bash/Domoticz_Backup.shHowever, I want to have it run daily in crontab. The following command however appears not to work, and I discovered it too late, after my system crashed last night and I dont have a recent backup
Code: Select all
0 15 * * * sudo ~/domoticz/scripts/bash/Domoticz_Backup.shDomoticz_Backup.sh was made executable by the way