Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create a tar file and pipe to compress command

Status
Not open for further replies.

gawker

Programmer
Feb 21, 2002
34
US
I need to create a tar file in a filesystem with limited room. Is there a way to send the tar file directly to the compress command so that the tar output is directly compressed (i.e., no intermediate file) and therefore smaller?

Thank you.

Gawker [pc2]
 
cd /
tar -cf- ./from/this/path | compress >/to/this/fs/backup.tar


HTH,

p5wizard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top