-1

Does the following command if issued between two drives require that the current drive have enough space to accommodate everything being moved to the second drive?

    tar cvf - .* --exclude=\. --exclude=\.\. | (cd /dest/dir; tar xvf -)

My line of thinking is that the tar has to be created on drive A before being moved to drive B.

Bms85smb
  • 153
  • 1
  • 6

1 Answers1

3

No.

The tar "file" exists only in the pipeline; it's not written to disk in the intermediate stage, but only at the destination when you extracted it.

Michael Hampton
  • 244,070
  • 43
  • 506
  • 972