Resume large file transfer

Resume interrupted big files and verify appended part by checksum; note: only safe if source unchanged

rsync -a --partial --append-verify --info=progress2 big.img user@<host>:/dst/

tool
rsync7 commands
tags
rsyncnetworktroubleshooting

More rsync commands

  • rsync -a -e "ssh -p 2222" --exclude-from=excludes.txt /src/ user@<host>:/dst/

    Tunnel over custom SSH port and skip paths listed in excludes.txt (.git, node_modules, *.tmp)

  • rsync -ac --delete-after /src/ /dst/

    Compare by checksum not mtime+size; delete-after avoids removing files until transfer succeeds

  • rsync -aHAXv --numeric-ids /src/ user@<host>:/dst/

    Preserve hardlinks, ACLs, xattrs, raw uid/gid for host migration; note: trailing slash matters

  • rsync -ai --dry-run --delete /src/ /dst/

    Preview every change with itemize codes (>f, cd, *deleting) before touching files

  • rsync -a --bwlimit=10M --info=progress2 /src/ user@<host>:/dst/

    Cap bandwidth to 10 MB/s to avoid saturating the link; progress2 shows overall ETA

all 7 rsync commands