tarring over ssh question - pulling from the source to tarfiles
freebsd at meijome.net
Wed Nov 2 03:53:03 PST 2005
Malcolm Kay wrote:
> On Wed, 2 Nov 2005 05:51 pm, Glenn Dawson wrote:
>>At 11:20 PM 11/1/2005, user wrote:
>>>Is that possible ? rsync/rdist are not available. I need to
>>>do this over ssh and tar, as in the above examples.
> To "user"
> From the other end:-
> % ssh whomever at othermachine tar -f /files | cat > /usr/home/user/file_data2.tar
> Redirection following ssh ( '|' and '>' ) occur at the local
> end unless within quotes.
ah, nice . thanks for the tip!:)
> % ssh whomever at othermachine tar -f /files "|" cat ">" /usr/home/user/file_data2.tar
> % ssh whomever at othermachine "tar -f /files | cat > /usr/home/user/file_data2.tar"
> would attempt to create the tar archive on the remote machine.
| dd of=/usr/home/user/file_data2.tar
should work as well instead of
| cat > /usr/home/user/file_data2.tar
More information about the freebsd-questions