FG

How to tar/untar the output on the fly

Fresh3 days ago
Mar 15, 202678470 views
Confidence Score0%
0%

Problem

What is the idiomatic way to do the following tar to stdout read this tar output from stdout and extract to some other folder. My solution is But may be there is more idiomatic way to do it.

Error Output

tar --to-stdout .. | tar -C somefolder -xvf -

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to tar/untar the output on the fly

Low Risk

The same option works for tarring as well. GNU tar uses stdio by default: rsync is also popular.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment