--- trunk/nl.nikhef.ndpf.tools/cvmfs/cvmfs-rsync-multi.sh 2014/11/11 22:03:08 2743 +++ trunk/nl.nikhef.ndpf.tools/cvmfs/cvmfs-rsync-multi.sh 2014/11/12 15:20:48 2744 @@ -31,7 +31,7 @@ rsyncdest=/cvmfs # the destination once a transaction started rdonlylocation=/var/spool/cvmfs # the compare-dest before transactions start -while getopts :r:s:d:S:R: OPT; do +while getopts :r:s:d:S:R:i: OPT; do case $OPT in r|+r) repo="$OPTARG" @@ -43,13 +43,17 @@ rsyncdest="$OPTARG" ;; S|+S) - rsyncopts='--password-file "$OPTARG"' + rsyncopts="$rsyncopts --password-file \"$OPTARG\"" ;; R|+R) rdonlylocation="$OPTARG" ;; + i|+i) + inclexclfile="$OPTARG" + rsyncopts="$rsyncopts --include-from=\"$OPTARG\"" + ;; *) - echo "usage: `basename $0` -r repository -s source [ -S secretsfile ]" + echo "usage: `basename $0` -r repository -s source [ -S secretsfile ] [ -i inclexclfile ]" exit 2 esac done