sanalkumar.siva@wipro.com
2005-Jun-16 15:16 UTC
rsync error: some files could not be transferred -- How to ignore
Hello all, I'm using rsync client in Linux box and cygwin rsync daemon in Win 2k machine. When i do transfer of directory contents "C:/Documents And Settings/Administrator/Local Settings/Application Data/Microsoft/Windows" using rsync, i'm getting the following error through stderr. ------------------------------------------------------------------------ ---------------------------------------------------------------- rsync: send_files failed to open "ion Data/Microsoft/Windows/UsrClass.dat" (in C:_Documents And Settings_Administrator_Local Settings_Application Data_Microsoft_Windows): Device or resource busy (16) rsync: send_files failed to open "ion Data/Microsoft/Windows/UsrClass.dat.LOG" (in C:_Documents And Settings_Administrator_Local Settings_Application Data_Microsoft_Windows): Device or resource busy (16) rsync error: some files could not be transferred (code 23) at main.c(1045) ------------------------------------------------------------------------ ------------------------------------------------------------------ When i manually checked, the files UsrClass.dat and UsrClass.dat.LOG are not accessible. Probably the error comes because of this. Is there any way to ignore these errors when i do file transfer using rsync? Thanks, Sanal Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or Mailadmin@wipro.com immediately and destroy all copies of this message and any attachments. -------------- next part -------------- HTML attachment scrubbed and removed
Wayne Davison
2005-Jun-17 05:50 UTC
rsync error: some files could not be transferred -- How to ignore
On Thu, Jun 16, 2005 at 08:49:54PM +0530, sanalkumar.siva@wipro.com wrote:> Is there any way to ignore these errors when i do file transfer using > rsync?What do you mean by ignore? They're just warnings, so rsync ignores them already for most things, just not deletions that happen after the warnings (such as --delete-after), but see the --ignore option to handle that. If you mean that your script halts, you can code a script to ignore only specific return codes (namely code 23). One would need to know what shell you're using to help with that. ..wayne..
sanalkumar.siva@wipro.com
2005-Jun-17 07:54 UTC
rsync error: some files could not be transferred -- How to ignore
Thanks Wayne.. Your mail answered my query perfectly.. -sanal On Thu, Jun 16, 2005 at 08:49:54PM +0530, sanalkumar.siva@wipro.com wrote:> Is there any way to ignore these errors when i do file transfer using > rsync?What do you mean by ignore? They're just warnings, so rsync ignores them already for most things, just not deletions that happen after the warnings (such as --delete-after), but see the --ignore option to handle that. If you mean that your script halts, you can code a script to ignore only specific return codes (namely code 23). One would need to know what shell you're using to help with that. ..wayne.. Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or Mailadmin@wipro.com immediately and destroy all copies of this message and any attachments.