LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 01-24-2012, 10:25 AM   #1
Eppo
Member
 
Registered: Feb 2007
Location: NY
Distribution: Arch, Ubuntu
Posts: 77

Rep: Reputation: 27
Automated backups, full disk image


I have a server running ubuntu 10.04. It would be an awful thing if i ever lost the disk. I do file backups across the network. What i would like to do is create an image of the disk (probably weekly), i could put another drive in which will be the image of the current system disk.
From doing research i know a lot of people will boot to a live cd and then use dd.
Can anyone help me out in automating the process? Manually doing this every Sunday isn't something i would like to have to do.
thanks

Joe
 
Old 01-24-2012, 11:00 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6
Posts: 1,602

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
Quote:
Originally Posted by Eppo View Post
I have a server running ubuntu 10.04. It would be an awful thing if i ever lost the disk
So why aren't you using a hardware RAID?
 
Old 01-24-2012, 11:16 AM   #3
Eppo
Member
 
Registered: Feb 2007
Location: NY
Distribution: Arch, Ubuntu
Posts: 77

Original Poster
Rep: Reputation: 27
I take what i was given. This is for work. Although i may look into something like that, but i think the company has a plan to upgrade our VM server, so when that happens i can just have them take snapshots.
For now i think this option would be best.
 
Old 01-24-2012, 11:21 AM   #4
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6
Posts: 1,602

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
Quote:
Originally Posted by Eppo View Post
I take what i was given.
Fair point, we've all been there.
Quote:
Originally Posted by Eppo View Post
This is for work.
If it's in any way mission critical then they should be using RAID.

Think about what you're backing up, do you really NEED a disk image?

Would taking a full file-system backup to tarball on a remote machine or a physical tape along with a properly documented restore procedure mitigate the risk enough? I've implemented a similar strategy several times along with six-monthly DR testing and it's worked out fine.
 
Old 01-24-2012, 11:34 AM   #5
Eppo
Member
 
Registered: Feb 2007
Location: NY
Distribution: Arch, Ubuntu
Posts: 77

Original Poster
Rep: Reputation: 27
I'm looking for the easiest solution, if it is possible to make automated disk images to a drive thats already in the machine, that would work out best, because if the drive dies, you reboot from the other drive. Very little downtime.
if i were to copy all the files to the other drive, if the first drive dies, i would have to install the bootloader on the other drive correct? Or is there a way that i can prep the drive, so its ready to go, so all i would have to do is boot from the second drive because all of the files were recent?
I've never had to do any recovery regarding the boot loader, so i would need some help as to what i can do in that respect.
thanks

Joe
 
Old 01-24-2012, 11:54 AM   #6
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
Originally Posted by Eppo View Post
I'm looking for the easiest solution, if it is possible to make automated disk images to a drive thats already in the machine, that would work out best, because if the drive dies, you reboot from the other drive. Very little downtime.
if i were to copy all the files to the other drive, if the first drive dies, i would have to install the bootloader on the other drive correct? Or is there a way that i can prep the drive, so its ready to go, so all i would have to do is boot from the second drive because all of the files were recent?
I've never had to do any recovery regarding the boot loader, so i would need some help as to what i can do in that respect.
thanks

Joe
1.st:
make a clone/image to the second drive, so that if you test run boot from it, it starts

2.nd:
make rsync or whatever backup from 1.st drive online to 2.nd drive, so the changes are archived as many times /day you want or need to do it.


Anyway, a RAID1 is what you want and is rather cheap for a company playing with loosing data (around $100 max. for a HW RAID card)

good luck
 
1 members found this post helpful.
Old 01-24-2012, 01:26 PM   #7
Eppo
Member
 
Registered: Feb 2007
Location: NY
Distribution: Arch, Ubuntu
Posts: 77

Original Poster
Rep: Reputation: 27
Quote:
Originally Posted by lithos View Post
1.st:
make a clone/image to the second drive, so that if you test run boot from it, it starts

2.nd:
make rsync or whatever backup from 1.st drive online to 2.nd drive, so the changes are archived as many times /day you want or need to do it.


Anyway, a RAID1 is what you want and is rather cheap for a company playing with loosing data (around $100 max. for a HW RAID card)

good luck
That is what i'm going to do.
Thanks for the help.
 
  


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
help: best ways to create and restore pseudo-disk-image backups ??? maxreason Linux - Software 2 01-09-2012 08:31 PM
Need Advice For: Secure and Automated Backups LinuxLearn Linux - Security 10 03-17-2010 06:44 AM
[SOLVED] Taking full hard disk image of Gentoo installation saivin Gentoo 5 06-16-2009 10:13 AM
Automated Backups of Windoze with rsync jimbo1954 General 3 02-26-2007 03:08 PM
Automated Backups Matir Linux - Software 2 06-28-2005 09:55 AM


All times are GMT -5. The time now is 09:05 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration