echo "[$CURRENT/$TOTAL] Copying $RELATIVE_PATH"
rsync -avhc --progress /source/ /destination/ # The -c flag forces checksum comparison, not just timestamp/size. teracopy linux
#!/bin/bash # Usage: ./teracopy.sh /source /destination SOURCE="$1" DEST="$2" LOG="$HOME/copy_log.txt" | sort >
# Generate hash of source find /source -type f -exec md5sum {} \; | sort > /tmp/source.md5 # Generate hash of destination cd /destination && md5sum --check /tmp/source.md5 Solution: Use ddrescue (yes, for files, not just disks). not just disks).
echo "[$CURRENT/$TOTAL] Copying $RELATIVE_PATH"
rsync -avhc --progress /source/ /destination/ # The -c flag forces checksum comparison, not just timestamp/size.
#!/bin/bash # Usage: ./teracopy.sh /source /destination SOURCE="$1" DEST="$2" LOG="$HOME/copy_log.txt"
# Generate hash of source find /source -type f -exec md5sum {} \; | sort > /tmp/source.md5 # Generate hash of destination cd /destination && md5sum --check /tmp/source.md5 Solution: Use ddrescue (yes, for files, not just disks).