On Fri, 30 Dec 2005 09:44:09 -0600, John Jolet wrote:

> > tar outputs to stdout be default, so "-f -" is redundant, as is the  
> > use
> > of dd. All you need is
> >
> > ssh hostname tar cf /source/path >backup.tar.gz
> >
> hmm, I'm not sure this behavior is consistent across all versions of  
> tar and all versions of ssh. 

The part about stdout being the default is consistent, -f overrides the
default. To maintain consistency across ssh versions, it may be safer to
use

ssh >backup.tar.gz hostname "tar cf /source/path"


-- 
Neil Bothwick

Windows95 - crash compatible on Windows 3.x

Attachment: signature.asc
Description: PGP signature

Reply via email to