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
|
for h in $FAIL_DISTRIBUTE_HOSTS
|
||||||
do
|
do
|
||||||
echo Distributing to $h ...
|
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
|
done
|
||||||
|
|
||||||
wait
|
wait
|
||||||
|
|||||||
@ -28,10 +28,10 @@ killall -q -9 fail-client || true
|
|||||||
# penalty, copy all experiment-related stuff to /tmp.
|
# penalty, copy all experiment-related stuff to /tmp.
|
||||||
TMP=/tmp/fail.$(id -nu)
|
TMP=/tmp/fail.$(id -nu)
|
||||||
mkdir -p $TMP
|
mkdir -p $TMP
|
||||||
rsync -a --delete * $TMP/
|
rsync -a --delete-before * $TMP/
|
||||||
if [ -d $LIBDIR ]
|
if [ -d $LIBDIR ]
|
||||||
then
|
then
|
||||||
rsync -a --delete $LIBDIR $TMP/
|
rsync -a --delete-before $LIBDIR $TMP/
|
||||||
fi
|
fi
|
||||||
cd $TMP
|
cd $TMP
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user