For some time I've noticed something that seems very strange to me when setting an rsync session for delete. The destination path of the backup is /backup/Latest/Latest/CORP-SERVER/ so for new/changed files the logs appropriately report for example: backup/Latest/Latest/CORP-SERVER/.... for each file/directory. However, when a file does not exist on the source end, and a deletion occurs I get the following bizarre line in the logs for each file: var/www/CORP-SERVER/C$/Corp/User Files/xxx-company/Admin/Property Asstes/Apartments/Sequoia/Photos/ Sequoia Bend/DSC03632.JPG:::0:::0:::*deleting I've added the colons to the logging format to easily parse the data. But why does it show var/www ? /var/www/html/command is where the rsync script is running from, but then why didn't it include 'html/command'? This messes up my whole logging process. My parameters are: --stats --compress --recursive --partial --archive --del --times --log-format=%f::: %l:::%b:::%i" Anyone know why it does this or how to correct? This happens on various servers with various versions of rsync so I don't think it's isolated. Thanks, Max -- View this message in context: http://www.nabble.com/Deleting...log-path-tf3946219.html#a11194087 Sent from the Samba - rsync mailing list archive at Nabble.com.
On Tue 19 Jun 2007, Max Kipness wrote:> > For some time I've noticed something that seems very strange to me when > setting an rsync session for delete. > > The destination path of the backup is /backup/Latest/Latest/CORP-SERVER/ so > for new/changed files the logs appropriately report for example: > > backup/Latest/Latest/CORP-SERVER/.... > > for each file/directory. > > However, when a file does not exist on the source end, and a deletion occurs > I get the following bizarre line in the logs for each file: > > var/www/CORP-SERVER/C$/Corp/User Files/xxx-company/Admin/Property > Asstes/Apartments/Sequoia/Photos/ > Sequoia Bend/DSC03632.JPG:::0:::0:::*deleting > > I've added the colons to the logging format to easily parse the data. > > But why does it show var/www ? /var/www/html/command is where the rsync%f is basically the full path name, from the module root (/ if you're %not talking to a daemon, I believe). I think you want %n> My parameters are: --stats --compress --recursive --partial --archive --del > --times --log-format=%f::: > %l:::%b:::%i"Curious, the manpage doesn't list --log-format as an option :-) I would have used --out-format. It helps, BTW, if you paste the exact command used, that makes it clear whether you're connecting to a daemon, what the module name is, etc. Paul Slootman
Maybe Matching Threads
- Upgrade From 2.2.3a to 2.2.4 Broke Solaris 8 PDC
- 3.9 regression with legacy static assert macros (bad type resolution)
- 3.9 regression with legacy static assert macros (bad type resolution)
- 3.9 regression with legacy static assert macros (bad type resolution)
- [LLVMdev] Transitioning build to cmake