LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-19-2004, 06:04 PM   #1
Cyberhund
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, 12:21 PM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,477

Rep: Reputation: 87
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, 12:33 PM   #3
SheldonPlankton
Member
 
Registered: Jun 2004
Posts: 129

Rep: Reputation: 15
I have heard good things about DAR.
http://sourceforge.net/projects/dar/
 
Old 07-21-2004, 02:49 PM   #4
Cyberhund
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Many thanks!
 
  


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
Full Backup With Cpio! grim2 Linux - General 6 02-09-2012 07:43 AM
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
cpio.gz?? unprocessed Linux - Newbie 7 09-11-2002 05:37 PM


All times are GMT -5. The time now is 05:32 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration