Follow

πŸ‘Ž scp
πŸ‘Ž rsync
πŸ‘ ssh example.org tee file.txt < file.txt

Β· Web Β· 5 Β· 7 Β· 17

tar -c some-dir/* | ssh example.org tar -xv

And a gentle reminder that tar is a useful ad-hoc tool for transmitting several files over a pipeline

Incorporate pv(1) into any of these for a progress meter

@sir I unironically did this quite often between my machines because I was too lazy to setup tinyssh for sftp
@sir nl(1) for line numbering (cat -n) and bsd vis(1) for showing non-printable chars (cat -v).
@sir from random to sequential writing, it's easily forgot how cool it is even without compression

@sir Can rsync do anything that tar can't? Such as xattrs?

@sir
This is cool, but isn't tar itself kind of a bloated monstrosity?

@sir how ironic is this? what if you want to transmit only those files that actually changed?

@sir I actually use ssh someone@somewhere doas tee file < my_file on production because scp doesn't work for some reason

Sign in to participate in the conversation
Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!