/[pdpsoft]/trunk/nl.nikhef.ndpf.tools/cvmfs/cvmfs-rsync-multi.sh
ViewVC logotype

Diff of /trunk/nl.nikhef.ndpf.tools/cvmfs/cvmfs-rsync-multi.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2743 by dennisvd, Tue Nov 11 22:03:08 2014 UTC revision 2744 by dennisvd, Wed Nov 12 15:20:48 2014 UTC
# Line 31  rsyncopts= Line 31  rsyncopts=
31  rsyncdest=/cvmfs # the destination once a transaction started  rsyncdest=/cvmfs # the destination once a transaction started
32  rdonlylocation=/var/spool/cvmfs # the compare-dest before transactions start  rdonlylocation=/var/spool/cvmfs # the compare-dest before transactions start
33    
34  while getopts :r:s:d:S:R: OPT; do  while getopts :r:s:d:S:R:i: OPT; do
35      case $OPT in      case $OPT in
36          r|+r)          r|+r)
37              repo="$OPTARG"              repo="$OPTARG"
# Line 43  while getopts :r:s:d:S:R: OPT; do Line 43  while getopts :r:s:d:S:R: OPT; do
43              rsyncdest="$OPTARG"              rsyncdest="$OPTARG"
44              ;;              ;;
45          S|+S)          S|+S)
46              rsyncopts='--password-file "$OPTARG"'              rsyncopts="$rsyncopts --password-file \"$OPTARG\""
47              ;;              ;;
48          R|+R)          R|+R)
49              rdonlylocation="$OPTARG"              rdonlylocation="$OPTARG"
50              ;;              ;;
51            i|+i)
52                inclexclfile="$OPTARG"
53                rsyncopts="$rsyncopts --include-from=\"$OPTARG\""
54                ;;
55          *)          *)
56              echo "usage: `basename $0` -r repository -s source [ -S secretsfile ]"              echo "usage: `basename $0` -r repository -s source [ -S secretsfile ] [ -i inclexclfile ]"
57              exit 2              exit 2
58      esac      esac
59  done  done

Legend:
Removed from v.2743  
changed lines
  Added in v.2744

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28