Dear *,
I created an Rsync task to push backups to a cloud storage provider that supports Rsync via SSH. However I can't get this to work, regardless of what I configure I always get the following error message in the log:
Unselecting the Quiet Option I got rid of the second error message already.
A test rsync run with same values as in the freenas web form in the shell did work, public keys have been provided to the remote user and remote machine's key has been added to known_hosts as well. All this is run via root user.
The crontab command generated from the freenas web form is as follows:
I run newest freenas version with latest updates applied (FreeNAS-9.3-STABLE-201412312006).
From what I've already tried and searched it points me to a similar if not same problem as described in
https://forums.freenas.org/index.php?threads/term-undefined-variable.14220/
--> TERM variable does not seem to be assigned at runtime of rsync crontab
So, how can I get around this issue?
Thanks a lot for any ideas...
Cheers,
Joerg
I created an Rsync task to push backups to a cloud storage provider that supports Rsync via SSH. However I can't get this to work, regardless of what I configure I always get the following error message in the log:
Code:
Jan 6 22:51:47 freenas rsync: TERM: Undefined variable. Jan 6 22:51:47 freenas rsync: Ambiguous output redirect.
Unselecting the Quiet Option I got rid of the second error message already.
A test rsync run with same values as in the freenas web form in the shell did work, public keys have been provided to the remote user and remote machine's key has been added to known_hosts as well. All this is run via root user.
The crontab command generated from the freenas web form is as follows:
Code:
0006**6,7rootPATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin" /usr/bin/lockf -s -t 0 -k '/mnt/zroot/blablabla' /usr/local/bin/rsync -r -t -z --delete-delay --delay-updates -e 'ssh -p 22 -o BatchMode=yes -o StrictHostKeyChecking=yes' '/mnt/zroot/blablabla' remoteuser@remoteserver:'/remotepath' 2>&1 |/usr/bin/logger -t rsync
I run newest freenas version with latest updates applied (FreeNAS-9.3-STABLE-201412312006).
From what I've already tried and searched it points me to a similar if not same problem as described in
https://forums.freenas.org/index.php?threads/term-undefined-variable.14220/
--> TERM variable does not seem to be assigned at runtime of rsync crontab
So, how can I get around this issue?
Thanks a lot for any ideas...
Cheers,
Joerg
Last edited: