LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-19-2008, 03:35 AM   #1
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
Question regarding backup


I am in the process of installing a file server for a client. They would like to have some kind of real time backup configured for it. Which one would be the best option

1. Setup raid.
2. Install on the first hard disk, use dd command and clone it on the second hard disk and then use cp command or some kind of mirroring software on a regular basis
3. Do backups using normal CD/DVD's and use some kind of cloning software to clone the 2nd hard disk once a week or so.

Your suggestions?


Thanks & Regards
Jay
 
Old 12-19-2008, 04:10 AM   #2
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
This looks interesting: http://rocky.molphys.leidenuniv.nl/ look at smart backup
 
Old 12-19-2008, 04:41 AM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
They would like to have some kind of real time backup configured for it
then raid would be the best solution.

Other options, rsync once or twice or... a day, using cron
 
Old 12-19-2008, 06:54 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
You can also have a look at "rsnapshot". This is a backup solution based on rsync which creates backup snapshots of your computer(s). You can make several snapshots per day if you want. The method is very disk space efficient because of the use of hardlinks. Here is an article I wrote sometime ago: http://alien.slackbook.org/dokuwiki/...inux:rsnapshot

At home, I have a rsnapshot solution running based on a small Linksys NSLU2 "NAS" running custom software (uNSLUng) with an external 1 TB USB hard drive.

Eric
 
Old 12-19-2008, 10:50 AM   #5
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware and OpenBSD
Posts: 740

Rep: Reputation: 190Reputation: 190
Another vote for rsnapshot. I use it at home (also to a Linksys Slug) and at work. It works very well.
 
Old 12-19-2008, 02:08 PM   #6
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
For a business server I would suggest both: RAID and a backup plan.

I set up a straightforward automated rsnapshot system for myself. Basically I use two rsnapshot setups. One to backup important configuration and user files every three hours. Because rsnapshot uses rsync, the disk space requirements are nominal after the first few backups. I have two internal hard drives and I backup those important files to the second drive and to a different partition. The second part of my backup strategy requires a full backup to a hard drive I store in a small fire-proof safe. The second part is manual for me, but could be automated for a nominal cost.

If interested you can read more:

A Backup Strategy
 
Old 12-20-2008, 12:04 AM   #7
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Original Poster
Rep: Reputation: 30
Thanks for the reply guys, i have few more days to go through these, will keep you all updated

Thanks & Cheers
Jay
 
Old 12-22-2008, 04:16 AM   #8
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Original Poster
Rep: Reputation: 30
This is what i am planing to do

1. Install on primary harddisk
2. mirror it on a secondary harddisk
3. use normal cp command to copy user files from primary hard disk to the secondary backup hardiisk

Only questions is, how to make the secondary harddisk bootable?

Any suggestions/comments

Thanks
Jay
 
Old 12-22-2008, 10:26 AM   #9
granth
Member
 
Registered: Jul 2004
Location: USA
Distribution: Slackware64
Posts: 212

Rep: Reputation: 55
Lightbulb

Quote:
Originally Posted by jayakrishnan View Post
This is what i am planing to do

1. Install on primary harddisk
2. mirror it on a secondary harddisk
3. use normal cp command to copy user files from primary hard disk to the secondary backup hardiisk

Only questions is, how to make the secondary harddisk bootable?

Any suggestions/comments

Thanks
Jay

I can see this causing some problems down the road.

For starters, there is no redundant disk. If the primary disk goes bad, the system goes offline. Since you plan on mirroring a drive anyway, why not use RAID-1? It's easy to configure, always in sync, and easy to recover when a drive fails. (you can boot from either drive)

http://slackware.cs.utah.edu/pub/sla...EADME_RAID.TXT

Both primary and secondary disks are connected to same machine. What if your disk controller goes bad and corrupts both disks? For this reason, you should backup the system configuration and other important directories to a different media or workstation. Like the others in this thread, I recommend a rsync-based solution. Tar is also a good option if you plan on burning backups.

For example, you could use the following command to rsync your data to a server named "failsafe" over ssh (pubkey auth):
rsync -av -e "ssh -i /path/to/private_key" /important/directory username@failsafe:/backups/

It might not be a bad idea to burn off some critical files for safe keeping elsewhere:
tar -cvzf /path/to/output.tar.gz /path/to/important/directory
Then burn the output file to a disc using whatever method you feel comfortable with.

Both of these tasks are easy to script and place on cron, which makes life easy.
 
Old 12-22-2008, 11:14 AM   #10
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Original Poster
Rep: Reputation: 30
System configuration is easy, as this is just a file server, so configuring it wont be a problem, once i have setup the system i can backup the conf files. Its the user data which is more important here. So i thought of the above procedure.
 
Old 12-22-2008, 02:26 PM   #11
granth
Member
 
Registered: Jul 2004
Location: USA
Distribution: Slackware64
Posts: 212

Rep: Reputation: 55
Regardless of what you are backing up, your methods mentioned above fall short in a few categories.
1. You will be wasting time and space with cp.
2. Your data will not be protected by physical separation.
3. Your data will not be protected by physical separation. (sic)


I like to keep important data in three different places. You may think I'm paranoid, but I don't like taking risks. Especially when my pay check is involved.
a. Primary server with RAID
b. Backup server
c. Offsite (tape/DVD)
 
Old 12-22-2008, 02:51 PM   #12
AuroraCA
Member
 
Registered: Jul 2008
Location: Northern CA USA
Distribution: Ubuntu, Slackware, Gentoo, Fedora, Red Hat, Puppy Linux
Posts: 370

Rep: Reputation: 35
Quote:
Originally Posted by granth View Post
Regardless of what you are backing up, your methods mentioned above fall short in a few categories.
1. You will be wasting time and space with cp.
2. Your data will not be protected by physical separation.
3. Your data will not be protected by physical separation. (sic)


I like to keep important data in three different places. You may think I'm paranoid, but I don't like taking risks. Especially when my pay check is involved.
a. Primary server with RAID
b. Backup server
c. Offsite (tape/DVD)
If you accumulate large amounts of data on your server (in excess of more than 5 DVDs) you may wish to look into installing or attaching a removable hard disk such as:

Internal:

[CENTER]KINGWIN KF-1000-BK 3.5" Internal hot swap rack
[LEFT]External:
[CENTER]Thermaltake BlacX ST0005U External Hard Drive SATA Enclosure Docking Station 2.5” & 3.5” USB 2.0 & eSATA

These allow you to insert an OEM hard drive into the system, perform your back and remove the hard disk to a safe off-site location. With the cost of 500 GB SATA II hard drives now under $60 you can now backup instantly without having to fuss with DVD drives which may or may not write correctly and may get lost.

A single disk can be used to store files, tarballs or database backups.
Just a thought. We use these for daily backups to backup more than 250 GB of data and have no problems.

Last edited by AuroraCA; 12-22-2008 at 02:53 PM. Reason: Clarification added
 
Old 12-24-2008, 02:57 AM   #13
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Original Poster
Rep: Reputation: 30
I tried setting up raid 1 , but getting some problems.

I have two SATA hard disks sda and sdb and i created the following partitions
Quote:
bash-3.1# fdisk -l /dev/sda

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xdb1adb1a

Device Boot Start End Blocks Id System
/dev/sda1 * 1 609 4891761 fd Linux raid autodetect
/dev/sda2 610 628 152617+ fd Linux raid autodetect
/dev/sda3 629 751 987997+ 82 Linux swap
/dev/sda4 752 19457 150255945 5 Extended
/dev/sda5 752 1725 7823623+ fd Linux raid autodetect
/dev/sda6 1726 19457 142432258+ fd Linux raid autodetect

used

Quote:
sfdisk -d /dev/sda | fsdisk /dev/sdb
so that my second hardisk partitions are the same as first hard disk

then i setup the raid

Quote:
mdadm --create /dev/md0 --level 1 --raid-devices 2 /dev/sda /dev/sdb
Installed slackware 12.2

Then did

Quote:
mdadm -D --scan >> /mnt/etc/mdadm.conf
Then edited lilo.conf and changed

boot = <something>

to

Quote:
boot = /dev/md0
added

Quote:
raid-extra-boot= mbr-only
but when i run lilo i get this error

Quote:
Fatal: Only RAID1 devices are supported for boot images
any one known why?
 
Old 12-30-2008, 01:31 AM   #14
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Original Poster
Rep: Reputation: 30
Everything is working fine now.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Backup question aescott Linux - General 4 10-23-2008 04:34 PM
About backup question. satimis Linux - General 12 06-29-2006 05:47 AM
backup question d1l2w3 Mandriva 8 01-08-2006 08:56 PM
Backup question gchandler Red Hat 1 05-24-2004 02:55 PM
Backup question Swift&Smart Linux - Software 2 06-18-2003 03:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:14 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