ectospasm wrote:You may also be able to redirect rsync output to a file, but I'm not sure where to set this.
In /etc/init.d/rsyncRR.sh (set DEBUG to yes). In debug mode the log files in /etc/logs/rsync/ should include more information. You can also modify other rsync options in the rsyncRR.sh file, e.g. increase the verbosity.
ectospasm wrote:You may also be able to redirect rsync output to a file, but I'm not sure where to set this.
In /etc/init.d/rsyncRR.sh (set DEBUG to yes). In debug mode the log files in /etc/logs/rsync/ should include more information. You can also modify other rsync options in the rsyncRR.sh file, e.g. increase the verbosity.
/Mike
Thanks for the suggestion but it did not produced any log in /etc/logs/rsync/
ERROR: /opt/bin/rsync returned 20 while processing /share/MD0_DATA/Backup/
WARNING: /share/MD0_DATA/Multimedia/ skipped due to rollback plan
WARNING: /share/MD0_DATA/SWRepo/ skipped due to rollback plan
WARNING: /share/MD0_DATA/StepirData/ skipped due to rollback plan
WARNING: Rolling back "localhost/"
/opt/bin/rm -rf /share/external/sds2/qnapbackup/hourly.0/localhost/
/opt/bin/cp -al /share/external/sds2/qnapbackup/hourly.1/localhost \
/share/external/sds2/qnapbackup/hourly.0/localhost
touch /share/external/sds2/qnapbackup/hourly.0/
rm -f /opt/var/run/rsnapshot.pid
rm: unable to remove `/share/external/sds2/qnapbackup/hourly.5/localhost/share/MD0_DATA/Multimedia/Mp3/Compilations/Italian Pop Music/.@__thumb': Directory not empty
rm: unable to remove `/share/external/sds2/qnapbackup/hourly.5/localhost/share/MD0_DATA/Multimedia/Mp3/Compilations/Italian Pop Music/.AppleDouble': Directory not empty
stepir wrote:
Thanks for the suggestion but it did not produced any log in /etc/logs/rsync/
Ignore what I wrote; for some reason I missed that this was about rsnapshot's usage of rsync. The changes to /etc/init.d/rsyncRR.sh is for remote replication.
Have you tried to increase the verbosity and log level in the rsnapshot.conf file?
ERROR: /opt/bin/rsync returned 20 while processing /share/MD0_DATA/Backup/
How have you configured rsnapshot, i.e. is the user running the rsnapshot process (admin?) allowed to write to the /share/MD0_DATA/Backup/ share? Do you run it over a secure connection (i.e. using the default or optware version of ssh); if so how have you configured that setup?
I have raised rsnapshot log level in rsnapshot.conf but still not able to see which file it is processing at the moment in the log (it is just shown in the console if I manually run rsnapshot hourly).
This is a local backup (the destination is a local attached USB drive) and I'm using admin... who is correctly able to read the source data and write in the destination drive: as a double check the error 20 is reported after a few initial directories are copied!). Any way I could access rsync log to discover the actual reason of error 20?
[08/Jun/2011:20:22:03] /opt/bin/rsnapshot hourly: started
[08/Jun/2011:20:22:03] Setting locale to POSIX "C"
[08/Jun/2011:20:22:03] echo 22909 > /opt/var/run/rsnapshot.pid
[08/Jun/2011:20:22:03] mkdir -m 0755 -p /share/external/sds2/qnapbackup/hourly.0/
[08/Jun/2011:20:22:03] /opt/bin/rsync -av --delete --numeric-ids --relative --delete-excluded --exclude='/:2eTemporaryItems' --exclude='/Network Trash Folder' --exclude='/Temporary Items' --exclude='/.AppleDB' --exclude='/.AppleDesktop' --exclude='/.AppleDouble' --exclude='/.@__thumb' /share/MD0_DATA/Backup /share/external/sds2/qnapbackup/hourly.0/localhost/
[08/Jun/2011:20:22:28] /opt/bin/rsnapshot hourly: ERROR: /opt/bin/rsync returned 20 while processing /share/MD0_DATA/Backup/
[08/Jun/2011:20:22:28] /share/MD0_DATA/Multimedia/ skipped due to rollback plan
[08/Jun/2011:20:22:28] /share/MD0_DATA/SWRepo/ skipped due to rollback plan
[08/Jun/2011:20:22:28] /share/MD0_DATA/StepirData/ skipped due to rollback plan
[08/Jun/2011:20:22:28] touch /share/external/sds2/qnapbackup/hourly.0/
[08/Jun/2011:20:22:28] No directory to delete: /share/external/sds2/qnapbackup/_delete.22909
[08/Jun/2011:20:22:28] rm -f /opt/var/run/rsnapshot.pid
[08/Jun/2011:20:22:28] /opt/bin/rsnapshot hourly: ERROR: /opt/bin/rsnapshot hourly: completed, but with some errors
[08/Jun/2011:23:30:03] require Lchown
[08/Jun/2011:23:30:03] Lchown module not found
this is the log level 5, which complain about lchown missing. Still same error (20) w/o any more details about the reason... using -v in rsync_short_arg do not work (rsync won't even start). It seems that my first source data has something strange in it... maybe the path dept or folder naming... but w/o an rsync log I'm not able to figure out!
Here is a hint for anyone who wants to have "Postpone the restart/shutdown schedule when a replication job is in progress" option
to work with rsnapshot. This works for my TS-219 and probably other systems. Just replace HDA_DATA with your device's data dir.
1) Create "scripts" directory on HDA_DATA and copy original /etc/init.d/wait_RR into it
On the backup side yes... still have doubts if the symb link are working or not with this drive (HFS+)
Will try your suggestion with the exclusion, could you please confirm you mean I should add a quotation (') at the beginning and at the end of the path and it should end with /. ??
Unfortunately I still have the issues in deleting older snapshot (still getting the Directory not empty error). I have to manually delete the content with multiple delete command since the files in those subfolders are shown only after the rm command.....