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.
Some may say "why are you using scp rather than rsync" and to that I say, rsync has even more ridiculously complicated flags to learn.
@jimbob eh, rsync is one of those things where you pretty much always use the same flags. -avzr from memory. Just copy it from the last script you used it in. :)
@SteveBennett @jimbob I always get the trailing slash wrong, and then rsync copies the directory inside the directory...
@beto @SteveBennett @jimbob this is me. I write a new script using sync about once every couple of years. I always end up using trial and error to rediscover whether I need a slash or not. And I still have directories out there with extra levels where I guessed wrong and didn’t realise 😊 #VeryOccasionalLinuxAdmin
@beto @SteveBennett @jimbob I make the source and destination paths look the same near the end of each of them and always with a trailing slash and it seems to always work out.