--- a/ha-sync Sat Nov 18 01:19:13 2006 +0000
+++ b/ha-sync Sat Nov 18 01:19:40 2006 +0000
@@ -1,4 +1,7 @@
#! /bin/bash
+# (c) 2006 Heiko Schlittermann <hs@schlittermann.de>
+# $Id$
+# $URL$
CONFIG=/etc/ha-sync/ha-sync.conf
@@ -42,6 +45,8 @@
}
# extra exclude list
+# we cannot sync the dirs under maintainance of drbdlinks
+# on any of our nodes...
extra=`tempfile`
trap "rm -f $extra" EXIT
echo $extra >$extra # and exclude it!
@@ -49,7 +54,10 @@
cd / || exit 1
for FS in ${FILESYSTEMS%/}/; do
- ${opt_debug+echo} rsync ${opt_dry+-n} --exclude-from $extra --exclude-from /etc/ha-sync/exclude --delete -Ravx .$FS `other`:/
+ ${opt_debug+echo} rsync ${opt_dry+-n} \
+ --exclude-from $extra \
+ --exclude-from /etc/ha-sync/exclude \
+ --del -Ravx .$FS `other`:/
done
test "$opt_dry" || ${opt_debug+echo} ssh -i $SSHID `other` update-grub