/!\ noch in Arbeit, keine Gewähr /!\

RSYNC=/usr/bin/rsync
RSYNCOPTS="-lptgoDH --stats --delete --numeric-ids --password-file=/etc/rsyncd.secrets"
ERSYNCOPTS="$RSYNCOPTS -r --exclude-from=rsync-exclude"
IRSYNCOPTS="$RSYNCOPTS --include-from=rsync-exclude"
# wenn es eine Datei mit Erweiterung .RemoteVersion gibt, bedeutet das,
# dass die zugehoerige Datei nicht synchronisiert werden darf (z.B. hostname
# oder IP-Adresse etc.)
find /etc -name "*.RemoteVersion" | sed 's/\.RemoteVersion$//' >rsync-exclude
mkdir tmpdir exclude
$RSYNC $ERSYNCOPTS rsync://linus/all/etc tmpdir/
while read FNAME; do
  DIR=exclude/`dirname $FNAME`
  FILE=`basename $FNAME`
  mkdir -p $DIR
  $RSYNC $IRSYNCOPTS rsync://linus/all$FNAME $DIR/$FILE.RemoteVersion
done < rsync-exclude

rsync/SynchronisierteServer (zuletzt geändert am 2007-12-23 22:50:00 durch localhost)