Computing.Net > Forums > Unix > Differences between cpio and tar

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Differences between cpio and tar

Reply to Message Icon

Name: unix newbie
Date: August 15, 2002 at 21:20:43 Pacific
Comment:

Hi everyone,
I'm a newbie to Unix and hope to know the differences between the backup command cpio and tar. Will i be able to backup all files using either commands? I need to do a root backup and do not know whether to use cpio or tar. Please advise. Thank you all.



Sponsored Link
Ads by Google

Response Number 1
Name: Frank
Date: August 16, 2002 at 01:20:52 Pacific
Reply:

Here the differences I know:

CPIO was desined for speard data's.
TAR is better used for sub directorys.
CPIO is more efficent to put files on tape than TAR (I know it sounds unusally but it is true)
CPIO is able to skip bad bolcks on a tape, TAR used stop.
CPIO is able to handel more than on tape, some TAR implementations not.

No RISK no fun
Frank


0

Response Number 2
Name: David Perry
Date: August 16, 2002 at 04:34:35 Pacific
Reply:

Also bear in mind that tar will not give you a complete system backup unless you are in single user mode. You might consider dump or ufsdump which will right out a file system to a dump file or tape.


0

Response Number 3
Name: PaulS
Date: August 16, 2002 at 17:27:30 Pacific
Reply:

If you interested in backing up an entire file system, I'd go for ufsdump as David suggested. Otherwise cpio would be my choice.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Differences between cpio and tar

Differences between Ext2fs and v7 www.computing.net/answers/unix/differences-between-ext2fs-and-v7/4705.html

difference between [ and ]] www.computing.net/answers/unix/difference-between-and-/8449.html

What's different btw unix and Solar www.computing.net/answers/unix/whats-different-btw-unix-and-solar/4115.html