cosme at crearq.co.cu
2017-Mar-20 15:37 UTC
[Samba] Bidirectional Rsync/Unison based SysVol replication workaround
Hi I use /usr/bin/rsync -XAavz --log-file /var/log/sysvol-sync.log --delete-after -f"+ */" -f"- *" /var/lib/samba/sysvol root at DC2:/var/lib/samba && /usr/bin/unison &> /dev/null and works ok but not working with crontab */5 * * * * root /usr/bin/rsync -XAavz --log-file /var/log/sysvol-sync.log --delete-after -f"+ */" -f"- *" /var/lib/samba/sysvol root at DC2:/var/lib/samba && /usr/bin/unison &> /dev/null
L.P.H. van Belle
2017-Mar-20 15:53 UTC
[Samba] Bidirectional Rsync/Unison based SysVol replication workaround
Hai, Check your /root/.unison/default.prf file This is what you should have and one of these is not correct root = /var/lib/samba root = ssh://root at DC2//var/lib/samba path = sysvol Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens Leonidch via > samba > Verzonden: maandag 20 maart 2017 16:38 > Aan: Samba List > Onderwerp: [Samba] Bidirectional Rsync/Unison based SysVol replication > workaround > > Hi > > I use /usr/bin/rsync -XAavz --log-file /var/log/sysvol-sync.log > --delete-after -f"+ */" -f"- *" /var/lib/samba/sysvol > root at DC2:/var/lib/samba && /usr/bin/unison &> /dev/null > > and works ok > > but not working with crontab > > */5 * * * * root /usr/bin/rsync -XAavz --log-file > /var/log/sysvol-sync.log --delete-after -f"+ */" -f"- *" > /var/lib/samba/sysvol root at DC2:/var/lib/samba && /usr/bin/unison &> > /dev/null > > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba
L.P.H. van Belle
2017-Mar-20 16:03 UTC
[Samba] Bidirectional Rsync/Unison based SysVol replication workaround
Ps. This is what im using. # sync during office hours. */5 7-18 * * 1,2,3,4,5 root /usr/bin/rsync -XAavz --log-file /var/log/sysvol-sync.log --delete-after -f"+ */" -f"- *" /var/lib/samba/sysvol root at 192.168.249.212:/var/lib/samba && /usr/bin/unison &> /dev/null If you checked the unison file, test as followed. /usr/bin/rsync -XAavz --log-file /var/log/sysvol-sync.log \ --delete-after -f"+ */" -f"- *" /var/lib/samba/sysvol \ root at DC2:/var/lib/samba and then run /usr/bin/unison Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens L.P.H. van Belle > via samba > Verzonden: maandag 20 maart 2017 16:54 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] Bidirectional Rsync/Unison based SysVol replication > workaround > > Hai, > > Check your /root/.unison/default.prf file > > This is what you should have and one of these is not correct > > root = /var/lib/samba > root = ssh://root at DC2//var/lib/samba > path = sysvol > > > Greetz, > > Louis > > > > -----Oorspronkelijk bericht----- > > Van: samba [mailto:samba-bounces at lists.samba.org] Namens Leonidch via > > samba > > Verzonden: maandag 20 maart 2017 16:38 > > Aan: Samba List > > Onderwerp: [Samba] Bidirectional Rsync/Unison based SysVol replication > > workaround > > > > Hi > > > > I use /usr/bin/rsync -XAavz --log-file /var/log/sysvol-sync.log > > --delete-after -f"+ */" -f"- *" /var/lib/samba/sysvol > > root at DC2:/var/lib/samba && /usr/bin/unison &> /dev/null > > > > and works ok > > > > but not working with crontab > > > > */5 * * * * root /usr/bin/rsync -XAavz --log-file > > /var/log/sysvol-sync.log --delete-after -f"+ */" -f"- *" > > /var/lib/samba/sysvol root at DC2:/var/lib/samba && /usr/bin/unison &> > > /dev/null > > > > > > > > > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: https://lists.samba.org/mailman/options/samba > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba
Seemingly Similar Threads
- Update3: easy - automated setup : Debian Wheezy with sernet samba 4.1 : sysvol replication with unison.
- Bi-directional sync for Sysvol folder -- Osync?
- Bi-directional sync for Sysvol folder -- Osync?
- Bi-directional sync for Sysvol folder -- Osync?
- Bidirectional wiki page correction suggestion