Hey guys,
I created some rsync jobs to copy some data from a locally mounted nfs share to my RAID and an external HDD. They ALL worked great, but now one rsync job throws the following error:
Code
./rsync-13e5c07a-6704-4363-9bfd-0d15c4c41487: 24: ./rsync-13e5c07a-6704-4363-9bfd-0d15c4c41487: Syntax error: Unterminated quoted string
I also tried manually starting the script located in /var/lib/openmediavault/cron.d, but it threw the same error... It tells me that there is a quote missing somewhere... Which is quite strange, as all strings are properly "quoted" (as far as I ca say at least...)
The script looks like this:
Code
#!/bin/sh
# This configuration file is auto-generated.
# WARNING: Do not edit this file, your changes will be lost.
. /usr/share/openmediavault/scripts/helper-functions
cleanup() {
omv_kill_children $$
rm -f /var/run/rsync-13e5c07a-6704-4363-9bfd-0d15c4c41487
exit
}
[ -e /var/run/rsync-13e5c07a-6704-4363-9bfd-0d15c4c41487 ] && exit 1
if ! omv_is_mounted "/srv/ac34248f-c593-41e4-9e98-db80619c9aca" ; then
omv_error "Source storage device not mounted at </srv/ac34248f-c593-41e4-9e98-db80619c9aca>!"
exit 1
fi
if ! omv_is_mounted "/srv/dev-disk-by-label-BACKUPHDD" ; then
omv_error "Destination storage device not mounted at </srv/dev-disk-by-label-BACKUPHDD>!"
exit 1
fi
trap cleanup 0 1 2 5 15
touch /var/run/rsync-13e5c07a-6704-4363-9bfd-0d15c4c41487
omv_log "Please wait, syncing </srv/ac34248f-c593-41e4-9e98-db80619c9aca/> to </srv/dev-disk-by-label-BACKUPHDD/extBACKUP> ...\n"
export RSYNC_PASSWORD="*****\"
rsync --verbose --log-file="/var/log/rsync.log" --recursive --times --archive --perms '/srv/ac34248f-c593-41e4-9e98-db80619c9aca/' '/srv/dev-disk-by-label-BACKUPHDD/extBACKUP' & wait $!
omv_log "\nThe synchronisation has completed successfully."
Alles anzeigen
The other strange thing is that even if I found the error, I couldn't do anything against it, as This configuration file is auto-generated.....
Any ideas?
Thanks!