Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-19-2004, 05:04 PM   #1
LQ Newbie
Registered: Jul 2004
Posts: 2

Rep: Reputation: 0
Post Using cpio to backup to CDROM

I'm lost without my smit!

I need to backup a few Red Hat Linux systems to CDROM, and I'm having a heck of a time figuring out how to do this. I'd like to use the cpio command. Is there someone out there who could outline (briefly) this process for me? Can I just cpio > directly to a blank CD in the system's CDROM drive?

Thanks in advance for your help!
Old 07-21-2004, 11:21 AM   #2
Senior Member
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,508

Rep: Reputation: 100Reputation: 100
Do you mean you need to backup EVERYTHING i.e the /dev directory and /proc?

Or just the data i. e. program files and directories/folders?

To backup selected parts of my Linux system, I use tar and gzip, then Gnome Toaster to burn to CD.

If you want to user tar and gzip, do something like this

tar cvf backuparchive.tar ./directory

This will "tar" ./directory into backuparchive.tar. Then do

gzip backuparchive.tar

and then use Gnome Toaster to burn this to CD.

Don't try to copy or backup /dev or /proc - bad karma. As far as I know /proc changes constantly and is only "valid" for one run of the system from startup to shutdown. /dev usually has custom stuff inside installed by installing certain programs.

Of course, you can try

tar cvf everything.tar /

but this is not recommended. When you restore that archive later with

tat zxvf everything.tar.gz

you will overwrite the /dev/ and /proc directories. Overwriting proc is a surefire recipe to crash your system and make it unusable (I think - happened to my once).

So the best bet is to identify which PROGRAMS and DATA is to be backed up. Then, logged in as root and in / do

tar cvf mybackup.tar /important_directory /another_important_directory /data /home/mydata

etc. and so on on each linux system. The only problem with is that the resulting tar.gz file may be too big for one
CD. But it should give you an idea in which direction to proceed. A hackneyed solution would be to tar gzip tar gzip tar gzip in little steps until you fill a CD.

Either way, you might want to google for a free program that will do this for you or even find a commercial vendor that might sell you a solution. I have always followed a policy of mirroring my important stuff manually to my Windows partition, and when I want to backup the whole system I use my Windows CD writer program to backup the windows part of the disk - which I have already ensured has the vital stuff of the windows AND Linux partitions contained in it.

Anyway, hope this helped a bit,
Old 07-21-2004, 11:33 AM   #3
Registered: Jun 2004
Posts: 129

Rep: Reputation: 15
I have heard good things about DAR.
Old 07-21-2004, 01:49 PM   #4
LQ Newbie
Registered: Jul 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Many thanks!


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
Full Backup With Cpio! grim2 Linux - General 6 02-09-2012 06:43 AM
multi-CDROM backup leftofright Linux - Software 2 11-02-2005 03:18 PM
How to use cpio to extract a cpio archive? linx win Debian 4 06-17-2005 01:53 PM
using cpio to create hard drive backup file bobsmith Linux - Newbie 2 10-20-2004 10:30 AM
cpio.gz?? unprocessed Linux - Newbie 7 09-11-2002 04:37 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:55 AM.

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