tar over SSH (part 2)

| No Comments | No TrackBacks

In our last episode we used tar to move a file structure across the network. This time, to create a tarball directly onto another machine the following command can be used:

tar czf - foo/ | ssh user@host "cat > /path/to/foo.tgz"

This is useful if the machine you're taring from doesn't have enough disk space to hold the tarball. Furthermore, it's probably faster because the tarball is only being written once, directly to its final location.

No TrackBacks

TrackBack URL: http://dinomite.net/cgi-bin/mt/mt-tb.cgi/121

Leave a comment

Pages

About this Entry

This page contains a single entry by Drew Stephens published on April 26, 2007 7:50 PM.

Remote Oracle Connections was the previous entry in this blog.

Finding Perl Module Dependencies is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.