[PLUG] When is it necessary to escape spaces in file names?

neil at aliens.la neil at aliens.la
Thu Sep 3 00:51:19 UTC 2015


have you tried using tab complete to get the right file name.

On 2015-09-02 15:36, Louis Kowolowski wrote:
> You should be able to use either one, but quoting may be easier, or
> get you going faster.
> Something like:
> rsync -aPS foo user at host:”/path/to/dir with spaces/“
> should work. Likewise,
> rsync -aPS foo user at host:/path/to/dir\ with\ spaces/
> should also work
> 
> It gets more complicated if there are escape characters in the
> directory or file name. Hopefully that isn’t happening.
> 
> 
>> On Sep 2, 2015, at 3:11 PM, Denis Heidtmann 
>> <denis.heidtmann at gmail.com> wrote:
>> 
>> I am trying to set up dirvish for local backup.  One file, VirtualBox 
>> VMs,
>> presents the subject question.  In dirvish, the name will appear in 
>> two
>> places:  The exclude: entry in the default.conf file for the backup of 
>> all
>> of home, and in the tree: entry in the default.conf file for the 
>> backup
>> of VirtualBox VMs
>> 
>> I can run a bunch of tests, but I would like some understanding when
>> escaping the space is needed.  Should I be using the backslash or 
>> double
>> quotes?
>> 
>> I have looked at the documents for rsync, which dirvish uses, but it 
>> is too
>> dense for my soft head.
>> 
>> Thanks,
>> -Denis
>> _______________________________________________
>> PLUG mailing list
>> PLUG at lists.pdxlinux.org
>> http://lists.pdxlinux.org/mailman/listinfo/plug
> 
> --
> Louis Kowolowski
> louisk at cryptomonkeys.org <mailto:louisk at cryptomonkeys.org>
> Cryptomonkeys:
> http://www.cryptomonkeys.com/ <http://www.cryptomonkeys.com/>
> 
> Making life more interesting for people since 1977
> 
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug



More information about the PLUG mailing list