Daily back-up to external hdd scripts error message

Post Reply
hendrikenrenny
Posts: 4
Joined: Monday 20 April 2015 21:53
Target OS: Raspberry Pi
Domoticz version:
Contact:

Daily back-up to external hdd scripts error message

Post by hendrikenrenny » Saturday 11 February 2017 17:51

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 969 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 969 times
Does anybody knows what is wrong and how to solve this?

thnx

User avatar
jvdz
Posts: 1313
Joined: Tuesday 30 December 2014 20:25
Target OS: Raspberry Pi
Domoticz version: Stable
Location: Westland/Netherlands
Contact:

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

Post by jvdz » Saturday 11 February 2017 18:08

Have you set the Execute flag with chmod +x for the file?

Jos

hendrikenrenny
Posts: 4
Joined: Monday 20 April 2015 21:53
Target OS: Raspberry Pi
Domoticz version:
Contact:

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

Post by hendrikenrenny » Saturday 11 February 2017 18:10

Hi,

Yes, and I also tried chmod 777 ...

hendrikenrenny
Posts: 4
Joined: Monday 20 April 2015 21:53
Target OS: Raspberry Pi
Domoticz version:
Contact:

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

Post by hendrikenrenny » Saturday 11 February 2017 19:55

Got it working again. Started the whole procedure from the start.

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

Hendrik

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests