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
6 days 16 hours ago
1 week 15 hours ago
1 week 16 hours ago
1 week 1 day ago
1 week 1 day ago
1 week 5 days ago
1 week 5 days ago
3 weeks 3 days ago
3 weeks 3 days ago
3 weeks 5 days ago