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:
- For the backup process, enter:
tar -cvf- . | compress | dd of=[tarfile]
- For the listing process, enter:
dd if=[tarfile] | uncompress | tar -tvf-
- For the restore process, enter:
dd if=[tarfile] | uncompress | tar -xvf-
[ Doc Ref: 95634830912968 Publish Date: Apr. 28, 2000 4FAX Ref: none ]