|
|
@ -114,6 +114,7 @@ for destination in $destinations; do |
|
|
|
rclone ${rclone_command} "${rclone_source}" "${rclone_target}" --size-only --progress --stats=2s ${rclone_args} |
|
|
|
copy_rc=$? |
|
|
|
if [[ -n "${rclone_sleep}" ]]; then |
|
|
|
echo "Sleeping for ${rclone_sleep}" |
|
|
|
sleep ${rclone_sleep} |
|
|
|
fi |
|
|
|
if [[ "${rclone_allow_failure}" = "true" && $copy_rc -gt 0 ]]; then |
|
|
@ -127,6 +128,7 @@ for destination in $destinations; do |
|
|
|
rclone dedupe --dedupe-mode "${rclone_dedupe_mode}" "${rclone_target}" --progress --stats=2s ${rclone_args} |
|
|
|
dedupe_rc=$? |
|
|
|
if [[ -n "${rclone_sleep}" ]]; then |
|
|
|
echo "Sleeping for ${rclone_sleep}" |
|
|
|
sleep ${rclone_sleep} |
|
|
|
fi |
|
|
|
if [[ "${rclone_allow_failure}" = "true" && $dedupe_rc -gt 0 ]]; then |
|
|
@ -147,6 +149,7 @@ for destination in $destinations; do |
|
|
|
file_link=$(rclone link "${rclone_target_file}") |
|
|
|
link_rc=$? |
|
|
|
if [[ -n "${rclone_sleep}" ]]; then |
|
|
|
echo "Sleeping for ${rclone_sleep}" |
|
|
|
sleep ${rclone_sleep} |
|
|
|
fi |
|
|
|
if [[ "${rclone_allow_failure}" = "true" && $link_rc -gt 0 ]]; then |
|
|
@ -188,6 +191,7 @@ if (( ${#file_links[@]} )); then |
|
|
|
echo "Link Target: ${rclone_link_target}" |
|
|
|
rclone copy ${links_json_file} ${rclone_link_target} --progress --stats=2s |
|
|
|
if [[ -n "${rclone_sleep}" ]]; then |
|
|
|
echo "Sleeping for ${rclone_sleep}" |
|
|
|
sleep ${rclone_sleep} |
|
|
|
fi |
|
|
|
fi |
|
|
|