Re: Rsync not handling spaces in directory names

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Sat, Jul 10, 2010 at 7:01 AM, Jordan Windsor <jordanw2@xxxxxxxxx> 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@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'


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux