LinuxQuestions.org
Have you heard the LinuxQuestions.org Podcast?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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
 
Thread Tools
Old 07-19-2004, 06:04 PM   #1
Cyberhund
LQ Newbie
 
Registered: Jul 2004
Posts: 2
Thanked: 0
Post Using cpio to backup to CDROM


[Log in to get rid of this advertisement]
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!
Cyberhund is offline     Reply With Quote
Old 07-21-2004, 12:21 PM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: FC11 2.6.29.4-167.fc11.i686.PAE
Posts: 1,217
Thanked: 26
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,
rylan76 is offline     Reply With Quote
Old 07-21-2004, 12:33 PM   #3
SheldonPlankton
Member
 
Registered: Jun 2004
Posts: 129
Thanked: 0
I have heard good things about DAR.
http://sourceforge.net/projects/dar/
SheldonPlankton is offline     Reply With Quote
Old 07-21-2004, 02:49 PM   #4
Cyberhund
LQ Newbie
 
Registered: Jul 2004
Posts: 2
Thanked: 0

Original Poster
Many thanks!
Cyberhund is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


All times are GMT -5. The time now is 08:41 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration