Hallo, I have write my first backup script for my FreeNas.
I want to run this as a cronjob.
I have add a New Task
/bin/bash /mnt/Volume1/Medien/backup.sh
The backup.sh has the following script:
Now when I start the Script on Console I get the following Error:
The Path "mnt\Volume1\Daten_Bastian" are not exist.
Can anyone help me?
I want to run this as a cronjob.
I have add a New Task

/bin/bash /mnt/Volume1/Medien/backup.sh
The backup.sh has the following script:
Code:
#!/bin/bash #Variablen festlegen (immer beginnend und endend mit / ) ############################ now=$(date +"%Y_%m_%d") source=/mnt/Volume1/Daten_Bastian target=/mnt/Volume1/Daten_Bastian/aaaaaa ############################# #Kopiervorgang ############################ cp -a $source $target/$now.backup ############################
Now when I start the Script on Console I get the following Error:
The Path "mnt\Volume1\Daten_Bastian" are not exist.
Can anyone help me?
Attachments
Last edited: