[Csync2] Re: csync2 questions
Yan Morin
progysm at gmail.com
Tue Dec 9 17:47:21 CET 2008
On Sat, Nov 29, 2008 at 01:24:20PM -0500, Yan Morin wrote:
> > Hi,
> >
> > I have some questions and I can't find answer. I use csync2 1.34.
> >
> > I try to synchronize files between debian sid (host1) and sidux
> > (siduxbox) and I don't understand some feature/configuration/usage.
> >
> > 1. In the paper.pdf, it is written: "Next you need to create an SSL
> > certificate for the
> > local Csync2 server. [...] You have to do that on each host you’re
> > running csync2 on. When servers are talking with each other fr the first
> > time, they add each other to the database."
> >
> > What I understand is that we need to create different SSL certificate on
> > each host. I've tried that and the SSL_connect() fail with a broken pipe
> > (seen with strace command). When I use the same SSL certificate on both
> > hosts, the SSL works correctly. At least, csync2 -x sends some files.
>
most of the csync2 installations I did do not use SSL,
as they just go via direct link.
maybe someone else can give you some hints there.
> > 2. If I update /etc/csync2.cfg on host1 (the file is inside an include),
> > and I proceed to csync -xv on host1, the output is:
> >
> > host1:/# csync2 -xv
> > Connecting to host siduxbox (SSL) ...
> > Updating /etc/csync2.cfg on siduxbox ...
> > While syncing file /etc/csync2.cfg:
> > ERROR from peer siduxbox: Open error while backing up '/etc/csync2.cfg':
> > No such file or directory
>
"Error while backing up" ...
now, is it possible that you have a backup directory configured,
but that backup directory does not exist?
if so, just mkdir it.
> > File stays in dirty state. Try again later...
> > ERROR from peer siduxbox:
> > Finished with 2 errors.
> >
> > The message "Open error while backing up '*': No such file or directory"
> > is for each file that I update on the primary host.
> > To remove this message, I currently need to manually remove
> > /etc/csync2.cfg on my second host2 (siduxbox).
> >
> > 3. If I remove a file on host2 by error, is there a way to download it
> > from host1, so that host1and host2 have the same file?
>
what about
host2# touch "file I don't want to remove"
host2# csync2 -xv "file I don't want to remove"
SSL: I've tried with nossl once and it does the same thing as two
identical ssl certificates. So I'm waiting for an answer for this, a
configuration example or after the bug on debian.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=501289
Error: Oh! you are right, I've forgot to mkdir my backup directory on
the second host.
I suggest that the error:
ERROR from peer siduxbox: Open error while backing up
'/backup/website/mont-laurier.local/Makefile': No such file or directory
should be rewritten with the final destination, not the source file:
ERROR from peer siduxbox: Open error while backing up
'/var/backups/csync2/backup_website_mont-laurier.local_Makefile.0': No
such file or directory
OK for the backup, I didn't think about the rotating archive.
If I want to do a script that automatically restore deleting file, I
could do
1. select all file inside the database
2. if the file don't exists,
check in the archive ( sed 's#_#/#g' ) and copy it removing the .0
or
1. Check with database all files that don't exists.
2. Upload the list on the server side and touch the server file from the
list
--
Yan Morin
Consultant en Logiciel Libre de Progysm
progysm at gmail.com
http://progysm.no-ip.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: progysm.vcf
Type: text/x-vcard
Size: 518 bytes
Desc: not available
Url : http://lists.linbit.com/pipermail/csync2/attachments/20081209/a08b7440/progysm.vcf
More information about the Csync2
mailing list