LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-04-2003, 01:29 AM   #1
cmisip
Member
 
Registered: Aug 2002
Posts: 189

Rep: Reputation: 30
How to backup a linux redhat install across a network?


I have configured an old 486 dx2 66 Mhz machine with 8 mb ram and 400 mb hd as an smtp server. I would like to backup this install across a network ( I dont have another local hard disk or any cd r drives in this machine. I have an empty ext2 partition exported via nfs on another machine which the 486 can access. I have read that dump can do a full system backup. I am thinking of using it to backup the 486 machine linux install onto the other machine's exported ext2 partition. What parameters to dump do I need to do this network backup? If this is even successful and I am able to create a full system backup file on the other networked machine, how would i restore in the case of a crash on the 486. Somehow I would need to have a boot disk with a kernel with the natsemi module so I will be able to access the network directory where I stored the backup. I guess it also needs to have the dump prgram. My second question is then how do I create this boot disk.
If there is no way to create such a boot disk with a natsemi module, would a mini linux system like's Toms rtbt allow me to restore from a dump file backup saved on cdrom? I would have to open the 486 and temporarily attach a cdrom drive (which I used to install the redhat 5.2 linux system). Thanks
 
Old 05-04-2003, 02:32 AM   #2
nakkaya
LQ Guru
 
Registered: Jan 2003
Location: Turkey&USA
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398

Rep: Reputation: 45
have look at http://www.partimage.org/index.php3 part image
 
Old 05-04-2003, 03:02 PM   #3
cmisip
Member
 
Registered: Aug 2002
Posts: 189

Original Poster
Rep: Reputation: 30
I tried that but it just hangs. I think I dont have enough memory to run even the binary. I was able to do a dump last night from the 486 to my nfs server(amdxp2400). I did a level 0. Was also able to creat a boot disk for the 486. Now I am trying to figure out how I would go about restoring in the event of a crash. Somehow I must have a minimal linux distro running via a boot disk with the drivers for my netgear fa312 loaded and be able to mount an nfs directory from the server and do a restore. I have taken the following steps:
1) mkbootdisk
2) boot with the created boot disk. When prompted for the root disk, Insert the redhat 5.2 rescue disk.
(This resulted in the loading of a kernel image with my network drivers and a minimal bash terminal.)
3) ifconfig eth0 192.168.1.3 netmask 255.255.255.0 broadcast 192.168.1.255 up
4) route add -net 192.168.1.0 eth0
5) route add default gw 192.168.1.1 (I dont know if this is necessary)
6) I can now ping the other machines.
7) create a mount point for the remote nfs directory holding the dump backup file
8) Now I try to mount a remote nfs directory with:
mount -t nfs 192.168.1.2:/mnt/ext2temp /mnt/backup

I get greeted with the error fs type nfs not supported by kernel.
Anybody have any ideas what I should do next?
 
Old 05-04-2003, 03:57 PM   #4
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
Well in a pinch I would use scp

see
man ssh
man sshd
man scp

$scp -r <localdir/to/filelocation> <user@host:/dir/for/file>
 
Old 05-04-2003, 04:03 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Quote:
Originally posted by BigNate
Well in a pinch I would use scp

see
man ssh
man sshd
man scp

$scp -r <localdir/to/filelocation> <user@host:/dir/for/file>
Or use rsync over ssh.

It's a pity partimage doesn't work that would have been the best way.

You could also mount a networked folder and dd to an image file.
 
Old 05-04-2003, 06:02 PM   #6
mlp68
Member
 
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333

Rep: Reputation: 40
Quote:
1) mkbootdisk
2) boot with the created boot disk. When prompted for the root disk, Insert the redhat 5.2 rescue disk.
(This resulted in the loading of a kernel image with my network drivers and a minimal bash terminal.)
3) ifconfig eth0 192.168.1.3 netmask 255.255.255.0 broadcast 192.168.1.255 up
4) route add -net 192.168.1.0 eth0
5) route add default gw 192.168.1.1 (I dont know if this is necessary)
6) I can now ping the other machines.
7) create a mount point for the remote nfs directory holding the dump backup file
8) Now I try to mount a remote nfs directory with:
mount -t nfs 192.168.1.2:/mnt/ext2temp /mnt/backup
I use a rescue CD at
http://www.phenix.bnl.gov/~purschke/RescueCD/
that supports all the NFS stuff. I use this to make clones of a carefully put-together system on many machines. You can customize it easily.

There are many ways of doing this, but I make straight tarballs of all partitions in questions. Say /dev/hda1 is your /, then boot that CD,

< mount your NFS area on, say, /backup >
mount /dev/hda1 /bdisk
cd /bdisk
tar c . | gzip -9c > /backup/root.tar.gz

ditto for the other partitions.

If you have to restore, make matching partitions on the new drive, and restore the tarballs. In the end, mount the new root partition as, say, /bdisk and do
lilo -r /bdisk

and you are done.

Hope it helps,
M
 
Old 05-07-2003, 09:25 PM   #7
cmisip
Member
 
Registered: Aug 2002
Posts: 189

Original Poster
Rep: Reputation: 30
Thanks. I think the method of creating custom boot disk and cd is what I need. When I use redhat rescue disk, I cannot mount my cdrom or nfs ( both iso9660 and nfs fs not supported). When I use toms mini linux on a floppy, I can mount the cdrom but I dont have the restore command. I also cannot boot off a cd. I guess I will need a combination of both floppy boot and cdrom access/nfs access to access my backup. Unfortunately, meanwhile my server crashed. Might have been hacked, I dont know. I killed the qmail program but it was still behaving like all its memory was hard disk based. Shouldn't have opened http port. But I went into this project not having a clear way of saving my work. It was a fun and very good learning experience. I will recreate everything after I come back from a vacation. Thanks again for everybody's input.
 
  


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
Network Install of redhat/solaris on sparc 10 melkor_41 Linux - Newbie 2 07-04-2005 10:35 AM
install redhat over network weerapat_patter Linux - Software 1 12-27-2004 07:50 AM
how to install wireless lan network on computeres using redhat v9.0? muhrwa Linux - Wireless Networking 3 04-23-2004 02:50 PM
Using Linux Redhat 9 to Backup Windows Server Files linuxbuck Linux - Software 1 03-07-2004 08:48 PM
how can i install redhat 9 over network cdrom yetalu Linux - Newbie 6 06-25-2003 02:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:05 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
Open Source Consulting | Domain Registration