Browse Source

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
changes/73/613573/1
Markos Chandras 7 months ago
parent
commit
592cb54d3c
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      test-log-collect.sh

+ 1
- 1
test-log-collect.sh View File

@@ -28,7 +28,7 @@
28 28
 export WORKING_DIR=${WORKING_DIR:-$(pwd)}
29 29
 export TESTING_HOME=${TESTING_HOME:-$HOME}
30 30
 
31
-export RSYNC_CMD="rsync --archive --safe-links --ignore-errors --quiet --no-perms --no-owner --no-group"
31
+export RSYNC_CMD="rsync --archive --safe-links --ignore-errors --quiet --no-perms --no-owner --no-group --whole-file --inplace"
32 32
 
33 33
 # NOTE(cloudnull): This is a very simple list of common directories in /etc we
34 34
 #                  wish to search for when storing gate artifacts. When adding

Loading…
Cancel
Save