[Csync2] csync2 not syncing symlinks?!
Wolfram Schlich
lists at wolfram.schlich.org
Thu Feb 21 23:26:17 CET 2008
* Lars Ellenberg <lars.ellenberg at linbit.com> [2008-02-21 17:48]:
> what you basically ask for is the "do-what-I-mean" command.
> good luck implementing it ;-)
Oh, does it differ much from the do-what-I-say parameter previously
implemented in DRBD?! ;-)))
> > A big fat notice in the csync2.cfg documentation would be the minimum
> > improvement though (and the documentation as a whole is... well, not
> > optimal, to say the least :>).
>
> well,
> since you just now volunteered,
> thanks for improving.
Since the only real piece of documentation regarding the abstract
funcionality of csync2 is that (in)famous "paper.pdf" that even
the README and the manpage point to, I am unsure how resp. where
I should add my notice...
So, I just modified the csync2.cfg that's shipped with the tarball.
--
Regards,
Wolfram Schlich <wschlich at gentoo.org>
Gentoo Linux * http://dev.gentoo.org/~wschlich/
-------------- next part --------------
diff -urN csync2-1.34.orig/csync2.cfg csync2-1.34/csync2.cfg
--- csync2-1.34.orig/csync2.cfg 2007-07-24 23:04:18.000000000 +0200
+++ csync2-1.34/csync2.cfg 2008-02-21 23:24:25.496844062 +0100
@@ -1,4 +1,3 @@
-
# Csync2 Example Configuration File
# ---------------------------------
#
@@ -12,6 +11,22 @@
#
# key /etc/csync2.key_mygroup;
#
+# #
+# # WARNING:
+# # You CANNOT use paths containing a symlink
+# # component in include/exclude options!
+# #
+# # Here is a real-life example:
+# # Suppose you have some 64bit Linux systems
+# # and /usr/lib/ocf is what you want to keep
+# # in sync. On 64bit Linux systems, /usr/lib
+# # is usually a symlink to /usr/lib64.
+# # This does not work:
+# # include /usr/lib/ocf;
+# # But this does work:
+# # include /usr/lib64/ocf;
+# #
+#
# include /etc/apache;
# include %homedir%/bob;
# exclude %homedir%/bob/temp;
@@ -26,6 +41,7 @@
# do-local;
# }
#
+# # The backup-directory needs to be created first!
# backup-directory /var/backups/csync2;
# backup-generations 3;
#
@@ -37,4 +53,3 @@
# on host[12]: /export/users;
# on *: /home;
# }
-
More information about the Csync2
mailing list