← Back to team overview

duplicity-team team mailing list archive

Re: [Question #215356]: spaces in include/exclude/source

 

Question #215356 on Duplicity changed:
https://answers.launchpad.net/duplicity/+question/215356

edso posted a new comment:
On 27.11.2012 18:11, Will Torres wrote:
> Question #215356 on Duplicity changed:
> https://answers.launchpad.net/duplicity/+question/215356
> 
> Will Torres posted a new comment:
> haha, i did
> 
> params="--exclude \"not this\" --include \"this and that\""
> 
> then duplicity $params.  obviously, this should work.  it's worked with
> million of other things.
> 
> i guess i can try apostrophes, instead of the quotes.
> 

pretty much identical, though single quotes should be preferred as they
tell your shell to _not_ interpret whatever is between them .. e.g.
imagine: '$PATH' would not be expanded to the value but "$PATH" would.

so actually 
 params='--exclude \'not this\' --include \'this and that\''
would be the perfect answer.

..ede/duply.net

-- 
You received this question notification because you are a member of
duplicity-team, which is an answer contact for Duplicity.