From 88d569bc4910a428ef3619a10e998ccdd18fc090 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 4 Jun 2017 15:05:30 -0300 Subject: Get time spent on rsync at sync-guestfs --- share/hydractl/sync-guestfs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'share/hydractl/sync-guestfs') 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 -- cgit v1.2.3