From 52850dcb8d7690c28f845830cc0783959a756067 Mon Sep 17 00:00:00 2001 From: hsc Date: Sat, 15 Sep 2012 18:03:12 +0000 Subject: [PATCH] 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 --- scripts/distribute-experiment.sh | 2 +- scripts/multiple-clients.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/distribute-experiment.sh b/scripts/distribute-experiment.sh index 651376be..0024fb29 100755 --- a/scripts/distribute-experiment.sh +++ b/scripts/distribute-experiment.sh @@ -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 diff --git a/scripts/multiple-clients.sh b/scripts/multiple-clients.sh index 42ac8ea1..dec91bb1 100755 --- a/scripts/multiple-clients.sh +++ b/scripts/multiple-clients.sh @@ -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