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
This commit is contained in:
Markos Chandras 2018-10-26 13:57:08 +01:00
parent e429142202
commit 592cb54d3c
1 changed files with 1 additions and 1 deletions

View File

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