top | item 45152659

(no title)

coxmi | 5 months ago

rsync needs some love on this.

The most memorable args for me are `-mrchivas`, because together they sound somewhat like a name (“Mister Chivas”)

(I drop the -a depending on whether archive is needed, Mr. Chivs sounds fun too)

discuss

order

shellsteady|5 months 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.

foreslion|5 months ago

You left the LLM response in the second paragraph.