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 09-14-2009, 01:40 PM   #1
anirvana
Member
 
Registered: Mar 2007
Posts: 31

Rep: Reputation: 15
Advice needed for backup strategy


Hello all,
I am writing to get some advice regarding a good backup strategy for my code which I will deploy on a remote server.

The situation: I will have access to a VPS/actual server somewhere. It will have some popular flavor of linux on it, probably Ubuntu 9.04. I will have admin rights.

The problem: How should I set up a backup strategy?

The guys who will give me access to the server may not be able to go in and add hard disks as and when I need them and so they have offered to provide more disk space up front than I would need. They will install the linux system, I will not have access to it during the OS installation process.

I think my application will never use more than 1 TB of disk space. The guys at the server farm can install a server with 2 1 TB disks for me. What could be the best way to mirror the primary 1 TB disk onto the 2nd 1 TB disk after the OS has been installed.

Also if there is a standard recovery mechanism to bring back the system based on a mirrored disk, I would really appreciate a pointer.

I have used Google to search and there's tons of articles, petabyte systems and what not. I am not sure how to go about it and hence this post.

Thanks in advance.
 
Old 09-14-2009, 03:15 PM   #2
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
You can do a RAID 1 mirror and configure your server so that fails over if one disk fails. You can also do remote backups with a simple bash script. Let me know if you need help.
 
Old 09-14-2009, 03:33 PM   #3
anirvana
Member
 
Registered: Mar 2007
Posts: 31

Original Poster
Rep: Reputation: 15
@ramram29

If I get you right, you are saying that I can do a RAID 1 config after the OS has been fully installed? I was under the impression that one needs to set up RAID at install time.

If I am incorrect, could you please point me to any article you have found useful for this purpose.

I am going through https://help.ubuntu.com/community/In...esearch=Titles for some more info.
 
Old 09-14-2009, 04:23 PM   #4
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
You can do it after the install. From what I can remember, the logic is:

-Setup RAID1 partition on second hard disk with first disk 'missing'.
-Create new partition(s) on second hard disk (preferably LVMs).
-Mount the partition(s) and copy all data from original disk to new disk.
-Setup grub on second hard disk.
-Setup new initrd on second hard disk.
-Change your BIOS to boot to one disk or the other.

-Remove the first disk and see if you PC will boot just with the second disk.
-Change boot order on the disks.
-Wipe out what used to be the first disk and add it to the array.
-Configure grub on the new second disk
-Reboot with either disk disabled to verify.
 
Old 09-14-2009, 04:39 PM   #5
anirvana
Member
 
Registered: Mar 2007
Posts: 31

Original Poster
Rep: Reputation: 15
great! I will try to test this out! thanks
 
Old 09-14-2009, 07:32 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,417

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
RAID 1 (aka mirror) is NOT a backup soln, it just protects you if one disk dies. If you delete a file (or file tree!) or get a corruption, it will happen to both disks simultaneously. Use rsync to copy files from one disk to the other once a day/week as appropriate.
Also, do an offsite backup so you have protection from site issues and also multiple backups. You may not discover an issue till several days after the fact. Classically you have grandfather/father/son eg
7 daily backups, extract the Fri backup and move it off as a weekly, extract every 4th weekly and save as mthly backup.
 
Old 09-15-2009, 05:58 PM   #7
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
As I said earlier: you can do a remote backup using a bash script, including rsync.
 
  


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
Backup Strategy Advice Pete89 Linux - Newbie 9 08-22-2007 10:19 PM
Backup Strategy jadurant Linux - Newbie 1 06-05-2007 07:38 PM
Backup strategy DIL23 Linux - Newbie 4 03-10-2007 08:59 PM
dvd backup advice needed countingbeans24 Linux - Newbie 4 11-15-2004 10:55 PM
Some Advice on a Strategy for Install kkathman Linux - Newbie 11 09-27-2003 04:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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