From 592cb54d3c5b5251b421de290dbde6dbba5e6c61 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Fri, 26 Oct 2018 13:57:08 +0100 Subject: [PATCH] test-log-collect: Improve rsync performance for log collection When collecting logs we do not care about file deltas so we can use the --whole-file option to not perform any kind of diff between the source and the destination. The --inplace option can also improve performance by copying files directly on the destination instead of creating intermediate ones first. Change-Id: I044cd2d56b9b907e5948be1d3bd11ce4a876b1a2 --- test-log-collect.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-log-collect.sh b/test-log-collect.sh index dc8f9905..aa08d67f 100755 --- a/test-log-collect.sh +++ b/test-log-collect.sh @@ -28,7 +28,7 @@ export WORKING_DIR=${WORKING_DIR:-$(pwd)} export TESTING_HOME=${TESTING_HOME:-$HOME} -export RSYNC_CMD="rsync --archive --safe-links --ignore-errors --quiet --no-perms --no-owner --no-group" +export RSYNC_CMD="rsync --archive --safe-links --ignore-errors --quiet --no-perms --no-owner --no-group --whole-file --inplace" # NOTE(cloudnull): This is a very simple list of common directories in /etc we # wish to search for when storing gate artifacts. When adding