[Csync2] Sym links problem?
Konrad Korzeniowski
kdf at mclane.pl
Mon Jan 30 16:41:04 CET 2006
Hi!
I've got to servers wich I'm trying to synchronize.
I'm using following
csync2 version: csync2 1.29-3 (from debian unstable)
kernel version: 2.6.8-2-686 (debian stable)
csync2 config looks:
-------------------------------------------------------------
group mygroup
{
host host2 webhost;
key /etc/csync2keys/cs2k.webhost;
include %homedir%/apache;
action # an action section (see 3.4.5)
{
pattern /etc/apache/httpd.conf;
pattern /etc/apache/sites-available/*;
logfile "/var/log/csync2_action.log";
do-local;
}
backup-directory /var/backups/csync2;
backup-generations 3;
auto none; # auto resolving mode (see 3.4.6)
}
prefix homedir # a prefix declaration (see 3.4.7)
{
on host2: /backup;
on *: /etc;
}
-------------------------------------------------------------
my problem is that when I try to compare defined two dir structures I got:
webhost:~# csync2 -T webhost host2
L webhost host2 %homedir%/apache/mime.types
-------------------------------------------------------------
and:
webhost:~# csync2 -xv
Connecting to host host2 (PLAIN) ...
Updating %homedir%/apache/mime.types on host2 ...
While syncing file %homedir%/apache/mime.types:
ERROR from peer host2: No such file or directory
File stays in dirty state. Try again later...
Finished with 1 errors.
-------------------------------------------------------------
file in question is really a symlink:
webhost:~# ls -la /etc/apache/mime.types
lrwxrwxrwx 1 root root 15 2005-08-06 09:59 /etc/apache/mime.types ->
/etc/mime.types
-------------------------------------------------------------
what can I do about it? :)
-------------------------------------------------------------
second question - is it possible to run ssl connection while one of the
hosts is behind nat (dnat) in configuration over internet? I cannot make
it to work...
webhost:/etc# csync2 -Tvvvvv webhost host2
My hostname is webhost.
Database-File: /var/lib/csync2/webhost.db
Config-File: /etc/csync2.cfg
Prefix 'homedir' is set to '/etc'.
Connecting to host host2 (SSL) ...
Local> SSL\n
Peer> OK (activating_ssl).\n
Establishing SSL connection failed.
:|
rgrds.,
Konrad Korzeniowski
More information about the Csync2
mailing list