aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl/sync-guestfs
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-06-04 15:05:30 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-06-04 15:05:30 -0300
commit88d569bc4910a428ef3619a10e998ccdd18fc090 (patch)
tree2b2761a8fdd4079e9a03e22ff8b6e43f9460e182 /share/hydractl/sync-guestfs
parentb4402132dca803233f0b046221e0d39f2716af6e (diff)
downloadhydra-88d569bc4910a428ef3619a10e998ccdd18fc090.tar.gz
hydra-88d569bc4910a428ef3619a10e998ccdd18fc090.tar.bz2
Get time spent on rsync at sync-guestfs
Diffstat (limited to 'share/hydractl/sync-guestfs')
-rwxr-xr-xshare/hydractl/sync-guestfs4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/hydractl/sync-guestfs b/share/hydractl/sync-guestfs
index 96e74cd..4055c0a 100755
--- a/share/hydractl/sync-guestfs
+++ b/share/hydractl/sync-guestfs
@@ -59,10 +59,10 @@ DEST_MOUNT="`mktemp -d $TMP/sync-guestfs-dest.XXXXXXXXXX`"
# See https://gergap.wordpress.com/2013/08/10/rsync-and-sparse-files/
# https://stackoverflow.com/questions/19821186/rsync-sparse-does-transfer-whole-data#19827546
echo "Making the first copy of $image to $DEST, which might take a while..."
- $SUDO $RSYNC --sparse $image $DEST/$image
+ time $SUDO $RSYNC --sparse $image $DEST/$image
else
echo "Destination $DEST/$image exists, syncing..."
- $SUDO $RSYNC --inplace $image $DEST/$image
+ time $SUDO $RSYNC --inplace $image $DEST/$image
#
# Sync using libguestfs-tools: mount existing