Ok finally I succeed in setting backups using the GUI, but I suppose there is an error. Could you check ?
I have the Selected source folder as an RSYNC module of another NAS and as "Selected destination folder" a folder in my Lacie.
Then I "Add scheduled backup in cron" and, at its execution I get the error:
- Code: Select all
PHP Parse error: syntax error, unexpected '.' in /share/1000/cronjobs/Rsync_Public.on.backup_asustor_tpWsjD.php on line 21
due to the dot '.' of
- Code: Select all
--password-file="/rw_fs/etc/.passwd-192.168.1.2:myuser"
The backup works fine if I replace the double quotes of the password filename with single quotes or if I remove them at all.
The whole line 21 is:
- Code: Select all
$cmd = "umask 0 && /usr/sbin/rsync --stats --force --ignore-errors --modify-window=2 -tDvplogr --delete -8 --password-file="/rw_fs/etc/.passwd-192.168.1.2:myuser" --port=873 myuser@192.168.1.2::'Public' '/share/1000/backup_asustor/Public'> '/share/1000/cronjobs/Public_";
Please, note the double quotes after --password-file that I suppose are the ones sending the interpreter in panic since they cause an undesired closure of the double quote at the beginning
P.S. I think it's also missing a single quote at the last end of the $cmd build. I added it