LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-29-2001, 10:07 AM   #1
teeno
Member
 
Registered: Jul 2001
Posts: 72

Rep: Reputation: 15
Backup


I am currently using my Linux box as a firewall, squid proxy server, Intranet server, mysql server and email server.

I am a little concerned that I don't have a good backup system in place. At the moment all my cgi scripts, mysql databases, html files and the etc directory are tared and copied to my Novell server every night. I use cron to execute some shell script to do this. All my Novell files are then stored on tape.

I am happy to tar the file and copy them to my Novell server but I need to know if there are any important files that need to be backed up that I might be missing. For example, if the hard drive fails will I be able to restore all the user accounts with just the files in the etc directory or do I need to backup others?

What are the most important files to backup? Will I be able to restore the system if it fails?

I will be grateful of any advice. (Sensible advice)
 
Old 08-29-2001, 02:07 PM   #2
kris.kj.jacobs
Member
 
Registered: Jun 2001
Location: Belgium
Distribution: Mandrake
Posts: 57

Rep: Reputation: 15
I make a backup of the following directories:

/etc - Contains (nearly) all config files
/home - User data
/root - Contains some system sensitive data like the backup scripts itself.
/var/named - Name daemon configfiles.
/usr/local - Contains general purpose programs not coming from any installation package (self written utilities etc.).

Besides these directories I also keep the following lists:

rpm -q -a : List of all installed packages (RPM).
fdisk -ul /dev/hda : Layout of disk partitions.
vgdisplay -v : Layout of volume groups.

A suggestion that might be helpful:

If you make a tar-file of all files to be backuped, and the tar file becomes corrupt for some reason (tape corrupt at a location containing the tar-file ?), the whole backup is useless.

On the other hand, if you copy the files in a directory and you put the directory file per file on the tape, the problem is much smaller; you might find some files that don't suffer from the corrupted area on the tape.

I use cp -d -R -p to copy the files to another location (-p preserves the file permissions).

What also could be handy -if you have the diskspace- is to keep the most recent backup somewhere on the hard-disk of the machine itself. In case something goes wrong and you don't manage to get the network up, the files are still somewhere on the system.
 
Old 08-30-2001, 07:39 AM   #3
teeno
Member
 
Registered: Jul 2001
Posts: 72

Original Poster
Rep: Reputation: 15
I have added the directories you suggested to my backup.

How hard will it be to restore all the users, passwords and data to the Linux box if it fails?

Thank you for your help.
 
Old 08-30-2001, 12:21 PM   #4
kris.kj.jacobs
Member
 
Registered: Jun 2001
Location: Belgium
Distribution: Mandrake
Posts: 57

Rep: Reputation: 15
How hard ? Depends on what the damage is.

Suppose the all disks crash (worst case). It will take some time and possibly not 100% bullet proof, but you will manage to get a running system.

Partition new HDD as described in the output of the fdisk command.
Reinstall Linux.
Recreate the Logical Volumes.
Make sure the list of installed packages matches the list on the backup and upgrade where needed.
Put back the backup.
Reboot.
That's it.

The safest and fastest way to recover from a failure is backup the whole system. With the quality of todays computer systems, I find that a bit exaggerated. If you have your data and the install media, you can recover.

Another way to cover you from failures is to use some kind of raid system (software or hardware raid). There are many sources of documentation on the net about this.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
backup help sridhar11 Debian 1 08-30-2005 10:40 AM
backup LuckyABA Linux - Software 1 01-22-2005 12:51 PM
can I backup a root disk and boot from the new backup disk linuxbkp Linux - Enterprise 3 10-15-2004 06:42 PM
Selective backup to CDRW, or other backup methods. trekk Linux - Software 1 11-03-2003 02:46 PM
backup and update the backup file doris Linux - General 4 08-24-2002 07:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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