BackupPC-users

Re: [BackupPC-users] BackupPC, rsync and ssh

2009-04-08 05:13:15
Subject: Re: [BackupPC-users] BackupPC, rsync and ssh
From: Holger Parplies <wbppc AT parplies DOT de>
To: Johan Ehnberg <johan AT ehnberg DOT net>
Date: Wed, 8 Apr 2009 11:00:06 +0200
Hi,

Johan Ehnberg wrote on 2009-04-08 10:28:53 +0300 [Re: [BackupPC-users] 
BackupPC, rsync and ssh]:
> [...]
> > 2) what's the meaning of "+" sign at the end of $argList?
> [...]
> 2) Maybe something with variables... someone else may know better.

quoting the default config file (explaining the TarClientCmd configuration
value):

# If a variable is followed by a "+" it is shell escaped.  This is
# necessary for the command part of ssh or rsh, since it ends up
# getting passed through the shell.

In other words: any part of a configuration value that will be *parsed by a
shell* must be accordingly quoted to protect meta-characters like '*' or ' '
from being misinterpreted. For verbatim text, you add backslashes as you need
them. For interpolated variables, the "+" at the end (as in "$argList+") does
this for you.

Regards,
Holger

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

<Prev in Thread] Current Thread [Next in Thread>