Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 02 Nov 2005 22:52:57 +1100
From:      Norberto Meijome <freebsd@meijome.net>
To:        Malcolm Kay <malcolm.kay@internode.on.net>
Cc:        user <user@dhp.com>, freebsd-questions@freebsd.org, Glenn Dawson <glenn@antimatter.net>
Subject:   Re: tarring over ssh question - pulling from the source to tarfiles
Message-ID:  <4368A899.8080801@meijome.net>
In-Reply-To: <200511022115.40898.malcolm.kay@internode.on.net>
References:  <Pine.LNX.4.21.0511020211270.8180-100000@shell.dhp.com>	<6.2.3.4.2.20051101232052.035a3040@cobalt.antimatter.net> <200511022115.40898.malcolm.kay@internode.on.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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!:)

> 
> Thus:
> % ssh whomever@othermachine tar -f /files "|" cat  ">" /usr/home/user/file_data2.tar
> or:
> % ssh whomever@othermachine "tar -f /files | cat  > /usr/home/user/file_data2.tar"
> would attempt to create the tar archive on the remote machine.
> 
FWIW,

| dd of=/usr/home/user/file_data2.tar

should work as well instead of

| cat > /usr/home/user/file_data2.tar

Beto



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4368A899.8080801>