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.



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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.