Wednesday, May 7, 2008

Linux archivers

TAR:
Compress: tar -czvf filename.tgz file
Extract: tar -czvf filename.tgz file
View: tar -tzvf filename.tgz file


CPIO
Compress: find ./dir1/* -print | cpio -ovc > /dir2/file2.cpio
Extract: cpio -ivcdum < /dir2/file2.cpio
View: cpio -itv < /dir2/file2.cpio

Example: cpio -i "*users01.dbf" "*xdb01.dbf" "*undotbs01.dbf" < /u00/oradata/NITISB/NITIS_20051003.cpio

No comments: