I am trying to implement a script that backs up a folder 2times/week, and then deletes backups older than ~60days.
I've used this script on gentoo and ran flawlessly
However I can not seem to implement it to my FreeNAS
The script was using zip, but as zip is not included into FreeNAS I switched to tar.
My basic problem is that I can not seem to run tar in a script.
I have simplified the command:
running in shell works ok
running in script
I tried using absolute paths, still not working.
Thanks
I've used this script on gentoo and ran flawlessly
However I can not seem to implement it to my FreeNAS
The script was using zip, but as zip is not included into FreeNAS I switched to tar.
My basic problem is that I can not seem to run tar in a script.
I have simplified the command:
tar -vcf /mnt/DATA.tar fld
running in shell works ok
running in script
/bin/sh -x scipt.sh
:Code:
+ tar -vcf DATA.tar fld : Cannot stat: No such file or directory tar: Error exit delayed from previous errors.
I tried using absolute paths, still not working.
Thanks
Last edited by a moderator: