The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 03-10-2009
jccbin jccbin is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 5
tar, zip multiple separate directories and move the results to another volume

TIA,

I'm using FreeBSD 6

I have a series of Directories (A,B,C,...Z). Each directory has files and other directories within it.

I want to compress the contents of each top directory into a single file so that I get an archive of each directory (for example, A.gzip) AND and want to move that compressed file to another volume on the system.

I have managed to be able to gzip the contents of each directory, but end up with a complete directory structure full of .gzips.

Looking on here I see that tar appears to be able to create the single-file archives I want, but I cannot tell if tar will compress and combine the files AND put the finished results on the other volume.

Ideas? Thanks again,

johnC