On Fri 22 Apr 2005, Benjamin Eastep wrote:
> 
> when using rsync-option:, the words "rsync-option:" actually gets written
> into the rsync command line.  For example:
> 
> default.conf:
> client: flight.shifting.ca
> tree: /etc/ 
> xdev: true
> index: gzip
> log: gzip
> image-default: %Y%m%d
> rsync-option: -e 'ssh -p 2222'

>From the dirvish.conf manpage:

       rsync-option: (L)

The (L) indicates that this is a list option, meaning that you have to
use the list syntax:

       [...]  Options expecting list
       must be specified in a multi-line format as shown here where the  lines
       specifying  values  are indented by any kind of whitespace even if only
       one value is being specified.

            option:
                 value1
                 value2
                 .
                 .
                 .
                 valueN

       Each value must be provided on its own line.  Any leading and  trailing
       whitespace  is  discarded.  [...]

Hence your config should be:

client: flight.shifting.ca
tree: /etc/ 
xdev: true
index: gzip
log: gzip
image-default: %Y%m%d
rsync-option:
    -e 'ssh -p 2222'

However, in this case it would be cleaner to do it as follows:

client: flight.shifting.ca
tree: /etc/ 
xdev: true
index: gzip
log: gzip
image-default: %Y%m%d
rsh: ssh -p 2222


> leads to the entry in the dirvish log file :
> 
> ACTION: rsync -vrltH --delete -pgo --stats -D --numeric-ids -x rsync-option: 
> -e 'ssh -p 2222'
> --exclude-from=/home/backup/fish-debian-etc/20050421/exclude
> --link-dest=/home/backup/fish-debian-etc/20040717/tree
> flight.shifting.ca:/etc/ /home/backup/fish-debian-etc/20050421/tree

It *is* sloppy that in this case the option is messed up, it should
probably give an error. Upstream is already aware of this.


Paul Slootman


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to