It's quite simple, but I tend to forget some of the switches involved in the proper command line. So here it is:
tar -cf - /some/file | ssh host.name tar -xf - -C /destination
Of course you can add a number of options to
tar
like
-z
or
-j
for compression. Or you could use SSH's compression too.
P.S.: I got the above syntax from
this page at Crucial Paradigm, but you'll most probably find the same at a thousand other sites.
Recent comments
2 years 23 weeks ago
3 years 45 weeks ago
3 years 45 weeks ago
3 years 47 weeks ago
3 years 48 weeks ago
4 years 3 weeks ago
4 years 3 weeks ago
4 years 3 weeks ago
4 years 3 weeks ago
4 years 3 weeks ago