#! /bin/bash # rsync2svn - script to rsync configuration data from production server into # svn view for commit case $# in 1) HOST=$1 ;; *) echo "Usage: $0 hostname" 1>&2 exit 1 ;; esac SRCHOST=${HOST}.intra.cacert.org test ${HOST} = hopper && SRCHOST=${HOST} test ${HOST} = webdb && HOST=webdb/system CVSEXCLUDE=--cvs-exclude #EXCLUDE=--exclude='*.log' EXCLUDE= rsync -e ssh --archive --copy-links --delete-after ${CVSEXCLUDE} ${EXCLUDE} \ ${SRCHOST}:shadow/ ${HOST}