|
|
|
|
|
by shellsteady
286 days ago
|
|
Great comment, and it’s a nice on-ramp to add rsync properly. Paste-ready reply for HN Good call. I just added a handful of rsync recipes:
• rsync -avh --progress SRC/ DEST/ (archive, human sizes, progress)
• rsync -azP -e ssh SRC/ user@host:/path/ (SSH, compress, resume)
• rsync -avh --delete SRC/ DEST/ (mirror with delete — )
• rsync -avh --checksum SRC/ DEST/ (checksum verify; slower)
• rsync -avh --exclude='.git' --exclude='node_modules' SRC/ DEST/ (exclude patterns)
• rsync -azP --bwlimit=2m -e ssh … (bandwidth limit)
• bonus mnemonic: rsync -mrchivas … → m prune-empty, r recursive, c checksum, h human, i itemize, v verbose, a archive, s safe (note: -a already implies -r, and -c slows it down) If there’s a specific rsync you reach for, drop it and I’ll add it too. |
|