Changeset 1163 for dasscm/trunk/usr/bin
- Timestamp:
- Nov 12, 2013, 1:53:58 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dasscm/trunk/usr/bin/dasscm_remote_update.sh
r882 r1163 9 9 # Use only, if a local dasscm installation is not possbile! 10 10 11 set -o errexit -o nounset 12 11 13 usage() 12 14 { … … 18 20 } 19 21 20 #DRYRUN="--dry-run" 21 # without one-file-system, a lot of warings are produced for /proc etc. 22 ONEFILESYSTEM="--one-file-system" 23 24 OPTIONS="$DRYRUN $ONEFILESYSTEM" 25 26 REMOTE_USER="root" 22 OPTIONS=${DASSCM_RSYNC_OPTIONS:-""} 23 REMOTE_USER=${DASSCM_REMOTE_USER:-"root"} 27 24 28 25 SERVER=$1 … … 42 39 # If you want to add more files, 43 40 # create the file in the repository and re-run this script 44 svn up $SERVER || (echo "failed to update repository $SERVER"; usage) 45 rsync -av --existing $OPTIONS $REMOTE_USER@$SERVER:/. . || (echo "failed to access server $SERVER via ssh/rsync"; usage) 41 cd $SERVER 42 svn up || (echo "failed to update repository $SERVER"; usage) 43 FILELIST=`mktemp` 44 find > $FILELIST 45 rsync -av --existing --files-from $FILELIST $OPTIONS $REMOTE_USER@$SERVER:/. . || (echo "FAILED to transfer dasscm files. Failed to access server $SERVER via ssh/rsync?"; usage) 46 rm $FILELIST 46 47 echo "updated file must be commited manually"
Note:
See TracChangeset
for help on using the changeset viewer.