[arch-general] Rsync not handling spaces in directory names

Jordan Windsor jordanw2 at gmail.com
Sat Jul 10 03:09:56 EDT 2010


On Sat, Jul 10, 2010 at 1:59 PM, Evangelos Foutras <foutrelis at gmail.com> wrote:
> On Sat, Jul 10, 2010 at 7:01 AM, Jordan Windsor <jordanw2 at gmail.com> wrote:
>> I'm unable to get rsync to handle a particular directory which
>> contains spaces within its name.
>> Here's the command I run and the output:
>>
>> [jordan at archpc Program Files]$ rsync -rve 'ssh -p 2222' Steam
>> archlap:/mnt/media/larissa-wine/drive_c/Program\ Files
>
> The way the space is escaped there at the end probably needs some
> tweaking. Note that the space is escaped in the current shell, and
> rsync receives 'archlap:/mnt/media/larissa-wine/drive_c/Program Files'
> as the last argument. I'm not sure how it's handled after this point,
> but either of the following ways should work:
>
> 1) archlap:/mnt/media/larissa-wine/drive_c/Program\\\ Files
> 2) archlap:'/mnt/media/larissa-wine/drive_c/Program\ Files'
>

Thank you, It's working now.


More information about the arch-general mailing list