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-
    

Creating smaller Archives with compress and tar Commands: ITEM: FAX
Dated: 2000/04/28~00:00 Category: anz
This HTML file was generated 2001/03/08~16:06:37
Comments or suggestions? Contact us