Re: rsync error: some files could not be transferred -- How to ignore
On Tue, 2008-04-08 at 21:27 -0600, Kenneth Seal wrote: In my case, rsync displays the error code rsync error: some files could not be transferred (code 23) and it kills my script. Do you have any advice on how would I go about writing, researching etc. a script to tell rsync to ignore such errors? If I were you, I would try to fix the code 23 instead of ignoring it! Rsync exits with code 23 when at least one non-fatal error occurs that may affect the correctness of the transfer. Perhaps the errors currently causing the code 23 are unimportant, but if you ignore code 23, you risk missing more important errors in the future (e.g., the nonexistence of a source argument). Look for the specific error messages in the output that are causing the code 23. If it isn't immediately obvious how to fix them, post them to the list and I'll take a look. Or if you don't care about copying the offending files, you can --exclude them. Matt signature.asc Description: This is a digitally signed message part -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: rsync error: some files could not be transferred -- How to ignore
On Apr 8, 2008, at 11:27 PM, Kenneth Seal [EMAIL PROTECTED] wrote: Hi Wayne, I read your thread online at http://lists.samba.org/archive/rsync/2005-June/012847.html and I am having a similar problem. In my case, rsync displays the error code rsync error: some files could not be transferred (code 23) and it kills my script. Do you have any advice on how would I go about writing, researching etc. a script to tell rsync to ignore such errors? I am using the bash shell in Mac OS 10.5.2. Any help would be much appreciated. Many thanks, Ken -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html The result code of a command is stored in a special variable named $? Check the value of that variable in an if statement immediately after the rsync line in your script If the value is 0 then there were no errors. If the value is 23, then you could log a warning or not. If there is any other value in $? , then you have another problem. If we could see the relevant lines of your script we might be able to provide more help. Also you control whether your script succeeds or fails based on the last line in your script. If you want it to succeed, the last line would be exit 0 Google for advanced bash scripting guide for more info. Kyle -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
RE: 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, [EMAIL PROTECTED] 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 [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: rsync error: some files could not be transferred -- How to ignore
On Thu, Jun 16, 2005 at 08:49:54PM +0530, [EMAIL PROTECTED] 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.. -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html