Page 1 of 1

Daily back-up to external hdd scripts error message

Posted: Saturday 11 February 2017 16:51
by hendrikenrenny
Hi all,

I just installed a fresh SD card with Rasbian Jessie and the latest version of Domoitcz after the SD got corrupted. Happy that I had the script running for daily backups, so the loss of data was almost nothing.

In the fresh installation, I installed the script again (see https://www.domoticz.com/wiki/Daily_bac ... ternal_hdd) by copying the script in the /pi/domoticz/scrips/ directory, filling in the right IP addresses etc, ran the chmod command (no error messages). However, when I want to execute the script (sudo /home/pi/domoticz/scrips/domotic_backup.sh), the message says:
Knipsel.JPG
Knipsel.JPG (20.08 KiB) Viewed 1433 times
The script is with the correct name in the correct folder, so that's not the problem:
Knipsel2.JPG
Knipsel2.JPG (23.17 KiB) Viewed 1433 times
Does anybody knows what is wrong and how to solve this?

thnx

Re: Daily back-up to external hdd scripts error message

Posted: Saturday 11 February 2017 17:08
by jvdz
Have you set the Execute flag with chmod +x for the file?

Jos

Re: Daily back-up to external hdd scripts error message

Posted: Saturday 11 February 2017 17:10
by hendrikenrenny
Hi,

Yes, and I also tried chmod 777 ...

Re: Daily back-up to external hdd scripts error message

Posted: Saturday 11 February 2017 18:55
by hendrikenrenny
Got it working again. Started the whole procedure from the start.

Still don't know what went wrong though...

Hendrik