From 55f7c6807d100fba8e8ee7bb920306e64fa6698b Mon Sep 17 00:00:00 2001 From: Drew Short Date: Wed, 22 Jan 2020 22:17:26 -0600 Subject: [PATCH] Adding rclone sha1 logging --- assets/out | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/assets/out b/assets/out index 4572d5f..f54f49d 100644 --- a/assets/out +++ b/assets/out @@ -60,6 +60,9 @@ echo "sha256:${sha256}" rclone_source="${local_source_dir}" echo "Source: ${rclone_source}" +rclone_sha1=$(rclone sha1sum "${rclone_source}" | cut -d' ' -f1) +echo "rclone sha1:${rclone_sha1}" + destinations=$(jq -r '.params.destination[] | @base64' < "$payload") echo "Using encoded destinations:" echo " ${destinations}" @@ -95,8 +98,10 @@ for destination in $destinations; do if [[ "$rclone_dedupe" == "true" ]]; then echo "Running Dedupe for: ${rclone_target}" # shellcheck disable=2086 - rclone dedupe --dedupe-mode "${rclone_dedupe_mode}" "${rclone_target}" ${rclone_args} + rclone dedupe --dedupe-mode "${rclone_dedupe_mode}" "${rclone_target}" --progress --stats=2s ${rclone_args} fi + + echo "rclone job complete for ${rclone_source} -> ${rclone_target}" done jq -n "{