Quoting m. allan noah ([EMAIL PROTECTED]):
> 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 [EMAIL PROTECTED]

Reply via email to