Creating Smaller Archives with compress and tar Commands


Environment

OS Level: AIX Version 4.2.0
Type/Model: 560

Problem

How can the compress command be combined with the tar command to create a smaller archive?

Solution

The following steps describe this process:
  1. For the backup process, enter:
       tar -cvf- . | compress | dd of=[tarfile]
    
  2. For the listing process, enter:
       dd if=[tarfile] | uncompress | tar -tvf-
    
  3. For the restore process, enter:
       dd if=[tarfile] | uncompress | tar -xvf-
    



[ Doc Ref: 95634830912968     Publish Date: Apr. 28, 2000]