# HG changeset patch # User heiko # Date 1163812780 0 # Node ID d582cdfc4595880bc9402b95c2eb03341c36cafd # Parent a64a60380d66a097339bef8bc9aac0311aa30958 umbruch diff -r a64a60380d66 -r d582cdfc4595 ha-sync --- 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 +# $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