[Csync2] Re: sync deleted files

Art -kwaak- van Breemen ard+csync2 at telegraafnet.nl
Mon Feb 2 16:45:03 CET 2009


On Mon, Feb 02, 2009 at 02:57:13PM +0200, Giedrius Augys wrote:
> I have executed on slave server (on which server I have deleted some files)
> command : csync2 -xv. The output was:
> ERROR from peer berkut: Permission denied for slave!
> 
> But then I executed the same command on master server , the deleted files
> were restored.
> So, this is workaround? Or maybe it's passible to this easier?

If the files are not existing on the slave, just issue an -m on
the master to mark the files dirty. If the files are changed on
the slave, you might need to -f (orce) them after -m (arking)
them.
-m will queue an update to the slaves
-f will queue a forced update to the slaves.

You do not have to run csync2 on the slaves (except from inetd).

The master/slave part is actually only working on the inetd part:
it just refuses updates from peers which are marked as
slaves/read-only peers in the local configuration.

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in email?


More information about the Csync2 mailing list