Home » Infrastructure » Unix » difference betwee cpio and tar commands
difference betwee cpio and tar commands [message #97934] Fri, 27 June 2003 01:44 Go to next message
sachin kumar gupta
Messages: 157
Registered: March 2003
Senior Member
Kindly can any body tell me the difference between
CPIO and TAR commands of UNIX.

tHANKS
sachin
Re: difference betwee cpio and tar commands [message #97937 is a reply to message #97934] Fri, 27 June 2003 14:00 Go to previous message
pwl
Messages: 22
Registered: May 2000
Junior Member
tar and cpio both combine files into a single file.
tar is the most commonly used and if you are using
gtar (GNU tar ) it is actually does the same as cpio.
cpio has 1 advantage over tar. If the output file,
the archive, is corrupt then tar aborts and you have
no way to recover. If the archive is created with
cpio you can force it to skip the corrupted block and
carry on. This means that you may well recover
almost all of the files, and for the damaged block
you may get enough of the file to work with.
But with databases it may not be useful enough to
worry
about.
Previous Topic: New Database Instance Causing Problems
Next Topic: Cron Job Problem (Urgent)
Goto Forum:
  


Current Time: Thu Mar 28 07:25:00 CDT 2024