Filenames with spaces cause problems; can't be escaped

This is a discussion on Filenames with spaces cause problems; can't be escaped within the Rsync forums, part of the Networking and Network Related category; Trying to use rsync as follows: rsync -v --delete -e ssh -avz tiger:/home/smith smithcopy But as the directory ...


Go Back   Usenet Forums > Networking and Network Related > Rsync

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-12-2005
Fred Henkstrom
 
Posts: n/a
Default Filenames with spaces cause problems; can't be escaped

Trying to use rsync as follows:

rsync -v --delete -e ssh -avz tiger:/home/smith smithcopy

But as the directory tree is traversed, as soon as it hits a file or
directory which has a space in the filename, things go bad... as in:

rsync: recv_generator: mkdir "/home/smith/Fun Stuff/myfile.txt": No such
file or directory (2)
stat /home/smith/Fun Stuff/myfile.txt : No such file or directory

I can't find any way to escape the filenames when they are included
implicitly.

(This happens whether or not I'm using ssh)
Reply With Quote
  #2 (permalink)  
Old 01-14-2005
Fred Henkstrom
 
Posts: n/a
Default Re: Filenames with spaces cause problems; can't be escaped

Fred Henkstrom wrote:
> Trying to use rsync as follows:
>
> rsync -v --delete -e ssh -avz tiger:/home/smith smithcopy
>
> But as the directory tree is traversed, as soon as it hits a file or
> directory which has a space in the filename, things go bad... as in:
>
> rsync: recv_generator: mkdir "/home/smith/Fun Stuff/myfile.txt": No such
> file or directory (2)
> stat /home/smith/Fun Stuff/myfile.txt : No such file or directory
>
> I can't find any way to escape the filenames when they are included
> implicitly.
>
> (This happens whether or not I'm using ssh)


Solved.

It was coincidence that this happened when there was whitespace. The
real problem was that the user on the target machine didn't have write
priveledges for the directory.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:13 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0