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:
hsc
2012-09-15 18:03:12 +00:00
parent f1bb6d9853
commit 52850dcb8d
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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