Daily back-up to external hdd scripts error message

Moderator: leecollings

Post Reply
hendrikenrenny
Posts: 18
Joined: Monday 20 April 2015 21:53
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Contact:

Daily back-up to external hdd scripts error message

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

thnx
User avatar
jvdz
Posts: 2328
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

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

Post by jvdz »

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

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
hendrikenrenny
Posts: 18
Joined: Monday 20 April 2015 21:53
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Contact:

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

Post by hendrikenrenny »

Hi,

Yes, and I also tried chmod 777 ...
hendrikenrenny
Posts: 18
Joined: Monday 20 April 2015 21:53
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Contact:

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

Post by hendrikenrenny »

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 1 guest