Teracopy Linux Instant

# Ubuntu/Debian sudo add-apt-repository ppa:ultracopier/ppa sudo apt update && sudo apt install ultracopier sudo dnf install ultracopier Arch yay -S ultracopier

# Instead of dragging 5 folders, run this to copy them one by one for file in "/source/dir1" "/source/dir2" "/source/dir3"; do pv -tpreb "$file" | dd of="/destination/$(basename $file)" bs=1M done Solution: rsync with checksum, or md5deep after copy.

echo "=== TeraCopy Style Copy ===" | tee -a "$LOG" TOTAL=$(find "$SOURCE" -type f | wc -l) CURRENT=0 2. Copy with queue and progress find "$SOURCE" -type f -print0 | while IFS= read -r -d '' file; do CURRENT=$((CURRENT + 1)) RELATIVE_PATH="$file#$SOURCE/" TARGET="$DEST/$RELATIVE_PATH" teracopy linux

echo "[$CURRENT/$TOTAL] Copying $RELATIVE_PATH"

# 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). then echo "OK: $RELATIVE_PATH" &gt

#!/bin/bash # Usage: ./teracopy.sh /source /destination SOURCE="$1" DEST="$2" LOG="$HOME/copy_log.txt"

rsync -avhc --progress /source/ /destination/ # The -c flag forces checksum comparison, not just timestamp/size. "$LOG" fi done

# Copy with progress bar and error logging if pv "$file" > "$TARGET" 2>/dev/null; then # Verify size SRC_SIZE=$(stat -c%s "$file") DST_SIZE=$(stat -c%s "$TARGET") if [ "$SRC_SIZE" -eq "$DST_SIZE" ]; then echo "OK: $RELATIVE_PATH" >> "$LOG" else echo "FAIL (size mismatch): $RELATIVE_PATH" >> "$LOG" fi else echo "ERROR: $RELATIVE_PATH" >> "$LOG" fi done