Changeset 219
- Timestamp:
- 11/12/08 17:39:51 (8 weeks ago)
- Location:
- one/branches/DEVELOPMENT/TransferManager/src/tm_mad/nfs
- Files:
-
- 2 modified
-
tm_clone.sh (modified) (1 diff)
-
tm_mv.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
one/branches/DEVELOPMENT/TransferManager/src/tm_mad/nfs/tm_clone.sh
r159 r219 16 16 log "Creating directory $DST_DIR" 17 17 exec_and_log "mkdir -p $DST_DIR" 18 exec_and_log "chmod a+w $DST_DIR" 18 19 19 20 case $SRC in -
one/branches/DEVELOPMENT/TransferManager/src/tm_mad/nfs/tm_mv.sh
r149 r219 9 9 DST_PATH=`arg_path $DST` 10 10 11 log "Moving $SRC_PATH" 12 exec_and_log "mv $SRC_PATH $DST_PATH" 11 if [ "$SRC_PATH" == "$DST_PATH" ]; then 12 log "Will not move, source and destination are equal" 13 else 14 # Is saving a disk image? 15 echo "$DST_PATH" | egrep -e "^$ONE_LOCATION/var/.+/disk\..+$" 16 if [ "x$?" == "x0" ]; then 17 log "Moving $SRC_PATH" 18 exec_and_log "mv $SRC_PATH $DST_PATH" 19 else 20 log "Will not move, is not saving image" 21 fi 22 fi 23
