tar auf /dev/hd

Florian Lohoff flo at rfc822.org
Wed Jan 12 13:05:45 CET 2000


On Wed, Jan 12, 2000 at 01:03:37PM +0100, Dietmar Guhe wrote:
> 
> Hallo,
> 
> koennte mir jemand erklaeren, was - mal abgesehen davon das es
> klappt - eigentlich bei
> 
> (cd /dev; tar cf - . ) | (cd /irgendwas; tar xpf -) 
> 
> passiert? Wenn er auf /dev/hd??? oder /dev/sd??? laeuft ist mir das 
> nicht klar.
> Ich haette gedacht, dass dann die ganze Platte kopiert wird, 
> wird sie aber nicht. 

Der erste () begriff - Macht ein cd nach /dev und tared das aktuelle
verzeichnis zusammen "." und schiebt das tar nach stdout "-".

Der zweiter operator macht ein cd nach irgendwas (Also das ziel)
und enttared das tar was ueber stdin kommt "-" in das aktuelle 
verzeichnis.

Flo
-- 
Florian Lohoff		flo at rfc822.org		      	+49-5241-470566
  ...  The failure can be random; however, when it does occur, it is
  catastrophic and is repeatable  ...             Cisco Field Notice




More information about the Linux mailing list