[6662] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

Re: Success!

daemon@ATHENA.MIT.EDU (Steve Thompson)
Fri Jun 11 19:39:01 1999

From: Steve Thompson <stevet@sendon.net>
To: "m. allan noah" <anoah@pfeiffer.edu>, linux-scsi@vger.rutgers.edu
Date: 	Fri, 11 Jun 1999 23:36:02 +0000
In-Reply-To: <19990611031042Z154669-15840+435@vger.rutgers.edu>


Quoting m. allan noah (anoah@pfeiffer.edu):
> cp -a most assuredly works. gets me where i am going every time :)

	tar -cpSlvf - . | tar -xpSlf - -C /target/dir

Works for me.

Doing this can permit you to tar across hosts via rsh or ssh:

	tar -cpSlvf - . | ssh -l root foo.bar.net 'tar -xpSlf - -C /target/dir'

which you can't do with cp unless you're using NFS.

Add compression to the tar pipeline (bzip or gzip) to go through a slow ppp connection.

Just for shit and giggles:

	( tar -cpSlf - . || echo "local failed: $?" >&2 ) | bzip2 -9 | ssh -l root foo.bar.net 'tar -xpSlf - -C /target/dir || echo "remote failed: $?" >&2'


Regards,

Steve


-- 
#define	pi  3.00
#define	e   3.00
#define	G   7.00E-11

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu

home help back first fref pref prev next nref lref last post