diff --git a/app/zip2cloud b/app/zip2cloud index bfa1e2f..729630c 100755 --- a/app/zip2cloud +++ b/app/zip2cloud @@ -71,7 +71,7 @@ done uploads="" cd ${ZIP_DIR} || exit for file in ${ZIP_DIR}/*.7z; do - echo "Comparing $file with remote" + echo "Comparing $file with all remote md5s" # Get the base name of the file without extension base_name=$(basename "$file" .7z) local_md5=$(md5sum "$file" | awk '{print $1}') @@ -80,8 +80,10 @@ for file in ${ZIP_DIR}/*.7z; do match_found=0 for remote_md5_file in ${ZIP_DIR}/tmp_md5/*.md5; do remote_md5=$(cat "$remote_md5_file") + echo "Comparing $file with $remote_md5_file" if [ "$local_md5" = "$remote_md5" ]; then match_found=1 + echo "$file checksum matches $remote_md5_file, skipping" break fi done @@ -204,8 +206,8 @@ done cd ${ZIP_DIR} || exit for file in ${final_uploads}; do echo "RClone-ing ${file} to GCP ${REMOTE}" - echo "Not actually cloning ${file}, just testing" -# /bin/rclone sync -v "$file" ${REMOTE}/ +# echo "Not actually cloning ${file}, just testing" + /bin/rclone sync -v "$file" ${REMOTE}/ done ### End Upload