use rsync --delete-before instead of --delete
Otherwise rsync may fail if the client machine's /tmp directory is almost full. git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1656 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
@ -39,7 +39,7 @@ fi
|
||||
for h in $FAIL_DISTRIBUTE_HOSTS
|
||||
do
|
||||
echo Distributing to $h ...
|
||||
rsync -az --partial --delete --delete-excluded --exclude=core --exclude=trace.tc . $h:"$FAIL_EXPERIMENT_TARGETDIR" &
|
||||
rsync -az --partial --delete-before --delete-excluded --exclude=core --exclude=trace.tc . $h:"$FAIL_EXPERIMENT_TARGETDIR" &
|
||||
done
|
||||
|
||||
wait
|
||||
|
||||
@ -28,10 +28,10 @@ killall -q -9 fail-client || true
|
||||
# penalty, copy all experiment-related stuff to /tmp.
|
||||
TMP=/tmp/fail.$(id -nu)
|
||||
mkdir -p $TMP
|
||||
rsync -a --delete * $TMP/
|
||||
rsync -a --delete-before * $TMP/
|
||||
if [ -d $LIBDIR ]
|
||||
then
|
||||
rsync -a --delete $LIBDIR $TMP/
|
||||
rsync -a --delete-before $LIBDIR $TMP/
|
||||
fi
|
||||
cd $TMP
|
||||
|
||||
|
||||
Reference in New Issue
Block a user