[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Preferred Backup Method?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, Dec 05, 2007 at 03:35:46PM -0800, David Brodbeck wrote:
>
> On Dec 5, 2007, at 3:16 PM, Michael Pobega wrote:
>> tar cvvf foo.tar bar | ssh user@dest "cat > foo.tar"
>>
>> Or am I doing it wrong (I most likely am)? I've never done any sort of
>> piping through SSH before, so any sort of help would be appreciated.
>
> You're close.  Try this:
>
> tar cvvf - bar | ssh -e none user@dest "cat >foo.tar"
>
> Using - as the filename tells tar to output to stdout.  "-e none" disables 
> SSH's escape character, making the session fully transparent -- otherwise 
> SSH will go into command mode if your tar output happens to contain a line 
> that starts with ~.
>

Very nice. I'll be trying this when I get home; Although before I
attempt this I'll probably attempt to install OpenBSD on my other
laptop -- But that's a whole 'nother story.

- -- 
If programmers deserve to be rewarded for creating innovative
programs, by the same token they deserve to be punished if they
restrict the use of these programs. 
 - Richard Stallman
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHV0TAg6qL2BGnx4QRAu5cAJwI+CcxoPpxnh9nG1dzs24yWf1GYgCgukB+
m7jGtW7YFU6dX2Q1LdW4kMc=
=j5ZD
-----END PGP SIGNATURE-----



Reply to: