Add --delete to rsync

Delete extraneous files in dest when rsyncing.

Change-Id: Id70aad9369e3522bb13ada8c1e0ee3395d2f4d3c
This commit is contained in:
James E. Blair
2012-02-10 10:39:53 -08:00
parent 3546c9166f
commit 63f9b46e4f

View File

@@ -77,7 +77,7 @@ if [ $RETVAL != 0 ]; then
exit $RETVAL
fi
rsync -az $WORKSPACE/ $NODE_IP_ADDR:workspace/
rsync -az --delete $WORKSPACE/ $NODE_IP_ADDR:workspace/
RETVAL=$?
if [ $RETVAL != 0 ]; then
echo "Deleting host"