Web lists-archives.com

Re: [Samba] sysvol replcation rsync error




On Fri, 3 Nov 2017 10:32:23 +0100
Giuseppe Arvati via samba <samba@xxxxxxxxxxxxxxx> wrote:

> Hello,
> 
> 2) rsync command I used
> 
> #!/bin/bash
> 
> PWDFILE=/usr/local/samba/etc/rsync-sysvol.secret
> SVOLPATH=/usr/local/samba/var/locks/sysvol/
> ROPT="-XAavz --delete-after"
> 
> rsync $ROPT --password-file=$PWDFILE 
> rsync://sysvol-replication@10.1.1.2/SysVol/ $SVOLPATH
> 

Looking at your bash script, I wonder if you are running into a similar
problem that I ran into last week. I was trying to run an ldbsearch in
a script, but it wouldn't work, though the expanded command ran in a
terminal did. I traced it down to something similar to what you are
doing, you are setting '$ROPT' to '-XAavz --delete-after'. In my case
bash seemed to treating this as one component instead of two, try
making the command this:

rsync -XAavz --delete-after --password-file=$PWDFILE
 rsync://sysvol-replication@10.1.1.2/SysVol/ $SVOLPATH

Rowland

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba