From 32351e7787d639219be79aa44724375e42ac34cf Mon Sep 17 00:00:00 2001 From: Drew Short Date: Wed, 22 Jan 2020 20:44:50 -0600 Subject: [PATCH] Add logging and address in command result --- assets/in | 2 +- assets/out | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/in b/assets/in index f1a63d7..c417f32 100644 --- a/assets/in +++ b/assets/in @@ -1,2 +1,2 @@ #!/bin/sh -echo '[]' \ No newline at end of file +echo '{"version":{}}' \ No newline at end of file diff --git a/assets/out b/assets/out index 357c0f9..ce13d94 100644 --- a/assets/out +++ b/assets/out @@ -74,6 +74,8 @@ for destination in $destinations; do echo "Destination: $rclone_destination" echo "Destination subdir file: ${rclone_destination_subdir_file}" + echo "Run dedupe: ${rclone_dedupe}" + echo "Dedupe mode: ${rclone_dedupe_mode}" rclone_destination_subdir="" if [ -n "$rclone_destination_subdir_file" ]; then @@ -86,6 +88,7 @@ for destination in $destinations; do rclone copy "${rclone_source}" "${rclone_target}" --config /opt/rclone/config/.rclone.conf --size-only --progress --stats=2s if [[ "$rclone_dedupe" == "true" ]]; then + echo "Running Dedupe for: ${rclone_target}" rclone dedupe --dedupe-mode "${rclone_dedupe_mode}" "${rclone_target}" fi