Howard Lowndes wrote:
> Have you considered doing rsync across machines. it is considerably faster
> as it only transfers the changes.

Ah that that would be sensible to run in between full tar backups. 
Wow I am right at this moment doing an "apt-get install rsync" and
will browse that info but I would still like to work out how to stream
a tar backup over ssh correctly.

> > This is the script that runs:
> > -----------------------
> > root:# cat test
> > #!/bin/bash
> >
> > # This is what will run when it all works :-)
> > #ssh root@martel 'tar cvf - /home' | dd > /dev/rmt0
> >
> > # This is here for testing, testing dir contains a few files
> > ssh root@martel 'tar cvf - /home/mikel/testing'
> > -----------------------
> >
> > The problem is that when ssh logs into root .bashrc & .profile gets run
> > and there is some output from the login shell. This is prepended to the
> > tar file so its not a tar file anymore. I can see the lines of the login
> > if I run "/test | more".

> > Question:
> > How do I stop the login stuff from prepending to the tape.?
> > Is there a better way to pipe tar through ssh or use scp? so
> > that it streams from the Alpha to the tape machine.

Mike
-- 
--------------------------------------------------------------------
Michael Lake
Active caver, Linux enthusiast and interested in anything technical.
Safety Convenor, Australian Speleological Federation
Owner, Speleonics (Australia)
--------------------------------------------------------------------

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to