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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] tar -f /files "|" cat  ">" /usr/home/user/file_data2.tar
or:
% ssh [EMAIL PROTECTED] "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
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to