LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-08-2008, 01:10 PM   #1
diwakars
LQ Newbie
 
Registered: May 2008
Location: India
Distribution: RHEL 5
Posts: 9

Rep: Reputation: 0
Differences between tar, cpio and dump commands


What are the differenes between TAR, CPIO and DUMP commands?
Explain me in detail plz. I have some doubts regarding this topic.
How to take a full/incremental/differential backup using these commands.

Regards
Diwakar
 
Old 06-08-2008, 01:20 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
The first resource of information should be the man or info pages for those commands.

Then do some internet research via www.google.com/linux, searching for 'using tar', 'using cpio', and 'using dump'.

These commands have been discussed many times.
 
Old 06-08-2008, 03:26 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
I believe cpio is an older program than tar. You may want to look in the tar info manual in section 5.2 which deals with incremental dumps and restores. It uses an option to produce snapshot files that are used to determine which files need to be backed up. Another option with tar or cpio is to use a find command to locate files newer that a certain date or newer than a particular file.

If you are going to use tar for backup, I'd recommend installing the tar source tarball. After the "./configure" stage, run "make pdf" or "make dvi" to produce a printable manual. You don't need to run "make && make install" since it is already installed.

Be sure to read up on whether file attributes, acls and security attributes are backed up as well.
There is a version called star that backs up security attributes as well, but a newer version of tar might with the correct options.

A backup program I like is dar which stands for Disk ARchive. It creates slices that you can burn to CDs or DVDs. It has a nice front end called "kdar". You can set up your jobs in kdar, and from kdar export a bash script that uses dar without a graphical front end. So you can use a handy gui for setting up you backups but have a cron job to perform the backups.

note: section 8.4 of the tar manual compares tar and cpio.

Last edited by jschiwal; 06-08-2008 at 03:45 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
differences of commands jumabern Linux - Newbie 4 02-16-2007 08:58 AM
cpio ... works like tar mchirico Linux - Newbie 0 03-25-2004 08:57 PM
How to forcely dump the history of user commands to the admin dump file. mcp_achindra Linux - Security 1 03-19-2004 01:04 PM
dump or tar imsajjadali Linux - General 1 01-29-2004 02:58 AM
tar or cpio - Which is better for tape backups? Br. Nicholas Linux - Software 2 07-02-2003 05:06 PM


All times are GMT -5. The time now is 10:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration