TIL that the scp command does not, by default, compress files it transfers, and that you need to add the -C flag to make it do that, and by doing that I have sped up my transfer speed about 40x, and without this knowledge I have probably wasted literally days of my life waiting for things in the past.

@jimbob Also scp is actually deprecated which keeps boggling my mind.

@hynek @jimbob what is the source for this? What’s the “official” replacement? I would have assumed even rsync was built on scp

That said, I see no reason to use scp over rsync

@tjc @hynek @jimbob The main reason I use scp over rsync is I can't magically wipe half the files in the source copy directory if I get the scp flags wrong.

@mtomczak @hynek @jimbob I agree that rsync can be dangerous. That’s why I heavily use shell aliases / functions (fish) for these. I only ever use a small combo of flags, so once I get those use cases I make functions with pre canned flags and some checks on slashes and whatnot. It’s a one time pain but then I never think about it again.

@tjc @hynek @jimbob I think that's good advice for interfacing with the command line in general.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.