Re: How to escape "()" characters in commad

2010-11-06 Thread Matt McCutchen
On Sat, 2010-11-06 at 20:09 -0700, rlinsurf wrote:
> I figured out how to change the filename so it doesn't have the ' in it:
> 
> /usr/local/bin/rsync -avv --protect-args 'Jeffrey Ellis iPhone (Root)'/
> 'Macintosh HD'/Users/jeffrey/Downloads/iphone_backup
> 
> But I'm still getting the same errors:
> 
> 
> rsync: readdir("/Volumes/Jeffrey Ellis iPhone
> (Root)/Applications/AdSheet.app/CodeResources"): No such file or directory
> (2)

Yes, and the error is telling you that the OS returned ENOENT from the
readdir system call.  The question is why, and that has to do with the
OS, not rsync.  Generally speaking, rsync is right to complain about a
system call failure because it has the potential to prevent rsync from
doing what the user asked, unless it indicates a condition that rsync
should handle in some other way.  Let us know if you determine the
latter to be the case.

Linux returns ENOENT from readdir if the directory has been deleted, so
that case would be just one more in which rsync handles concurrent
modifications to the source ungracefully, but I doubt that is what is
happening here.

-- 
Matt

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
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: How to escape "()" characters in commad

2010-11-06 Thread rlinsurf

Hi, Wayne--

I figured out how to change the filename so it doesn't have the ' in it:

/usr/local/bin/rsync -avv --protect-args 'Jeffrey Ellis iPhone (Root)'/
'Macintosh HD'/Users/jeffrey/Downloads/iphone_backup

But I'm still getting the same errors:


rsync: readdir("/Volumes/Jeffrey Ellis iPhone
(Root)/Applications/AdSheet.app/CodeResources"): No such file or directory
(2)


This doesn't seem to be a system problem. There aren't even any complaints
about bad characters.
-- 
View this message in context: 
http://samba.2283325.n4.nabble.com/How-to-escape-characters-in-commad-tp3008848p3030556.html
Sent from the Samba - rsync mailing list archive at Nabble.com.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
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: How to escape "()" characters in commad

2010-11-06 Thread Wayne Davison
On Sat, Nov 6, 2010 at 9:19 AM, rlinsurf  wrote:

> Here's my output. Seems the same as before:
>

You'll need to figure out what is going on with the filename weirdness,
since it seems to be an issue with your OS.

..wayne..
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
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: How to escape "()" characters in commad

2010-11-06 Thread rlinsurf

Yike. It was me. I forgot to cd to the /volumes.

Here's my output. Seems the same as before:


localhost:~ jeffrey$ cd /volumes
localhost:volumes jeffrey$ /usr/local/bin/rsync -avv --protect-args 'Jeffrey
Ellis’s iPhone (Root)'/ 'Macintosh HD'/Users/jeffrey/Downloads/iphone_backup
sending incremental file list
rsync: readdir("/Volumes/Jeffrey Ellis?\#200\#231s iPhone
(Root)/Applications/AdSheet.app/CodeResources"): No such file or directory
(2)
rsync: readdir("/Volumes/Jeffrey Ellis?\#200\#231s iPhone
(Root)/Applications/AppStore.app/CodeResources"): No such file or directory
(2)
rsync: readdir("/Volumes/Jeffrey Ellis?\#200\#231s iPhone
(Root)/Applications/Calculator.app/CodeResources"): No such file or
directory (2)
rsync: readdir("/Volumes/Jeffrey Ellis?\#200\#231s iPhone
(Root)/Applications/Compass.app/CodeResources"): No such file or directory
(2)
rsync: readdir("/Volumes/Jeffrey Ellis?\#200\#231s iPhone
(Root)/Applications/Contacts.app/CodeResources"): No such file or directory
(2)
rsync: readdir("/Volumes/Jeffrey Ellis?\#200\#231s iPhone
(Root)/Applications/Cydia.app/Modes/NEW_INSTALL.png"): No such file or
directory (2)
rsync: readdir("/Volumes/Jeffrey Ellis?\#200\#231s iPhone
(Root)/Applications/DemoApp.app/CodeResources"): No such file or directory
(2)
rsync: readdir("/Volumes/Jeffrey Ellis?\#200\#231s iPhone
(Root)/Applications/FieldTest.app/CodeResources"): No such file or directory
(2)
delta-transmission disabled for local transfer or --whole-file


Then the rest copies fine, with intermittent failures of the same variety:


Applications/AppStore.app/el.lproj/InfoPlist.strings is uptodate
Applications/AppStore.app/el.lproj/Localizable.strings is uptodate
rsync: readdir("/Volumes/Jeffrey Ellis?\#200\#231s iPhone
(Root)/Applications/Installous.app/CodeResources"): No such file or
directory (2)
Applications/AppStore.app/en_GB.lproj/InfoPlist.strings is uptodate

-- 
View this message in context: 
http://samba.2283325.n4.nabble.com/How-to-escape-characters-in-commad-tp3008848p3030129.html
Sent from the Samba - rsync mailing list archive at Nabble.com.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
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: How to escape "()" characters in commad

2010-11-06 Thread rlinsurf

Hi, Wayne--

I just tried to use tab to complete this:


localhost:~ jeffrey$ /usr/local/bin/rsync -avv --protect-args 'Jeffrey


But it just beeps :(
-- 
View this message in context: 
http://samba.2283325.n4.nabble.com/How-to-escape-characters-in-commad-tp3008848p3030123.html
Sent from the Samba - rsync mailing list archive at Nabble.com.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
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: How to escape "()" characters in commad

2010-11-06 Thread Wayne Davison
On Mon, Nov 1, 2010 at 12:28 PM, rlinsurf  wrote:

> rsync: readdir("/Volumes/Jeffrey Ellis?\#200\#231s iPhone
> (Root)/Applications/Preferences.app/CodeResources"): No such file or
> directory (2)
>

You may have specified the wrong high-bit apostrophe.  Note that rsync
outputs characters that it is told are not displayable using escaped octal
(\#200\#231 == octal 0200 + 0231, or 0x80 + 0x99), but you can't use such a
sequence in the input -- it is just there to try to help you figure out what
undisplayable character is there.  Use your shell to help you complete the
filename -- since it's local, you should be able to just tab-complete the
name and use whatever the shell gives you.

..wayne..
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
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: How to escape "()" characters in commad

2010-11-01 Thread rlinsurf

Hi, Steve--

Heres’ my output:

localhost:volumes jeffrey$ chdir "/Volumes/Jeffrey Ellis\?\#200\#231s iPhone
\(Root\)" 
-bash: chdir: command not found

Also, when I try it with —itemize changes instead of vv:

/usr/local/bin/rsync -a --itemize-changes --protect-args 'Jeffrey Ellis’s
iPhone (Root)'/ 'Macintosh HD'/Users/jeffrey/Downloads/iphone_backup

all the files come up as:

rsync: readdir("/Volumes/Jeffrey Ellis?\#200\#231s iPhone
(Root)/Applications/Preferences.app/CodeResources"): No such file or
directory (2)

Best,
J.

-- 
View this message in context: 
http://samba.2283325.n4.nabble.com/How-to-escape-characters-in-commad-tp3008848p3022657.html
Sent from the Samba - rsync mailing list archive at Nabble.com.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
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: How to escape "()" characters in commad

2010-11-01 Thread rlinsurf

Hi, Wayne--

I’m not sure I understand. Sorry, but what’s a high-bit quote? In any case,
it’s now working much better, so thank you :)

But I’m now getting a lot of these:

localhost:volumes jeffrey$ /usr/local/bin/rsync -avv --protect-args 'Jeffrey
Ellis’s iPhone (Root)'/ 'Macintosh HD'/Users/jeffrey/Downloads/iphone_backup
sending incremental file list
rsync: readdir("/Volumes/Jeffrey Ellis?\#200\#231s iPhone
(Root)/Applications/AdSheet.app/CodeResources"): No such file or directory
(2)
rsync: readdir("/Volumes/Jeffrey Ellis?\#200\#231s iPhone
(Root)/Applications/AppStore.app/CodeResources"): No such file or directory
(2)
rsync: readdir("/Volumes/Jeffrey Ellis?\#200\#231s iPhone
(Root)/Applications/Calculator.app/CodeResources"): No such file or
directory (2)
rsync: readdir("/Volumes/Jeffrey Ellis?\#200\#231s iPhone
(Root)/Applications/Compass.app/CodeResources"): No such file or directory
(2)
rsync: readdir("/Volumes/Jeffrey Ellis?\#200\#231s iPhone
(Root)/Applications/Contacts.app/CodeResources"): No such file or directory
(2)
rsync: readdir("/Volumes/Jeffrey Ellis?\#200\#231s iPhone
(Root)/Applications/Cydia.app/Modes/NEW_INSTALL.png"): No such file or
directory (2)
rsync: readdir("/Volumes/Jeffrey Ellis?\#200\#231s iPhone
(Root)/Applications/DemoApp.app/CodeResources"): No such file or directory
(2)
rsync: readdir("/Volumes/Jeffrey Ellis?\#200\#231s iPhone
(Root)/Applications/FieldTest.app/CodeResources"): No such file or directory
(2)
delta-transmission disabled for local transfer or --whole-file

But mostly, the files are copying normally. Maybe the above is about 10%,
but they still seem weird.

Also, doesn’t the  second ‘ (in Ellis’s) disrupt the whole thing, or need to
be escaped somehow?

Best,
J.

-- 
View this message in context: 
http://samba.2283325.n4.nabble.com/How-to-escape-characters-in-commad-tp3008848p3022656.html
Sent from the Samba - rsync mailing list archive at Nabble.com.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
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: How to escape "()" characters in commad

2010-10-28 Thread Wayne Davison
On Mon, Oct 25, 2010 at 12:44 PM, rlinsurf  wrote:

> 'Jeffrey Ellis\’s iPhone \(Root\)'/


Unless those backslashes are a part of the filename, get rid of them.
 You're using single quotes and --protect-args, so you only need a backslash
it exists in the filename.  Also, make sure the character set for your
high-bit quote matches between systems, or you may need to use an --iconv
conversion.  If removing the backslashes doesn't make it work, you can also
try substituting 1 or 2 question marks in place of the high-bit quote in
order to match it.

..wayne..
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
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: How to escape "()" characters in commad

2010-10-28 Thread Steven Levine
In <1288035867443-3012707.p...@n4.nabble.com>, on 10/25/10
   at 12:44 PM, rlinsurf  said:

Hi,

>localhost:volumes jeffrey$ /usr/local/bin/rsync -avv --protect-args
>'Jeffrey Ellis\ s iPhone \(Root\)'/ 'Macintosh
>HD'/Users/jeffrey/Downloads/iphone_backup
>sending incremental file list
>rsync: change_dir "/Volumes/Jeffrey Ellis\?\#200\#231s iPhone \(Root\)"
>failed: No such file or directory (2)
>delta-transmission disabled for local transfer or --whole-file

>I'm lost.

What's the result of

chdir "/Volumes/Jeffrey Ellis\?\#200\#231s iPhone \(Root\)"

from the command line?

You might try adding --itemize-changes.  It's often more helpful than
additional -v's.

Steven

-- 
--
"Steven Levine"   eCS/Warp/DIY etc.
www.scoug.com www.ecomstation.com
--

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
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: How to escape "()" characters in commad

2010-10-25 Thread rlinsurf

Hi, Guys --

Ok, here's my output:

localhost:volumes jeffrey$ /usr/local/bin/rsync -avv --protect-args 'Jeffrey
Ellis\’s iPhone \(Root\)'/ 'Macintosh
HD'/Users/jeffrey/Downloads/iphone_backup
sending incremental file list
rsync: change_dir "/Volumes/Jeffrey Ellis\?\#200\#231s iPhone \(Root\)"
failed: No such file or directory (2)
delta-transmission disabled for local transfer or --whole-file

I'm lost.
-- 
View this message in context: 
http://samba.2283325.n4.nabble.com/How-to-escape-characters-in-commad-tp3008848p3012707.html
Sent from the Samba - rsync mailing list archive at Nabble.com.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
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: How to escape "()" characters in commad

2010-10-23 Thread Steven Levine
In <1287873889527-3008848.p...@n4.nabble.com>, on 10/23/10
   at 03:44 PM, rlinsurf  said:

Hi,

>/usr/local/bin/rsync -avv 'Jeffrey s iPhone (Root)'/ 'Macintosh
>HD'/Users/jeffrey/Downloads/iphone_backup

When there are spaces in the file name, it is typical to need to supply
--protect-args.

Steven

-- 
--
"Steven Levine"   eCS/Warp/DIY etc.
www.scoug.com www.ecomstation.com
--

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
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: How to escape "()" characters in commad

2010-10-23 Thread Edvinas Valatka
On Sat, 23 Oct 2010 15:44:49 -0700 (PDT)
rlinsurf  wrote:

> 
> I have the following command:
> 
> /usr/local/bin/rsync -avv 'Jeffrey’s iPhone (Root)'/ 'Macintosh
> HD'/Users/jeffrey/Downloads/iphone_backup
> 
> Unfortunately, it's barking when it hits the "(". 
> 
> -bash: syntax error near unexpected token `('
> 
> How can I escape this?
> 
> Thanks.
> 
> 

\(
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

How to escape "()" characters in commad

2010-10-23 Thread rlinsurf

I have the following command:

/usr/local/bin/rsync -avv 'Jeffrey’s iPhone (Root)'/ 'Macintosh
HD'/Users/jeffrey/Downloads/iphone_backup

Unfortunately, it's barking when it hits the "(". 

-bash: syntax error near unexpected token `('

How can I escape this?

Thanks.


-- 
View this message in context: 
http://samba.2283325.n4.nabble.com/How-to-escape-characters-in-commad-tp3008848p3008848.html
Sent from the Samba - rsync mailing list archive at Nabble.com.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html