LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-03-2009, 11:51 PM   #16
vaibhavs
Member
 
Registered: Jun 2008
Posts: 113

Original Poster
Rep: Reputation: 15

I have a good idea.
Seeking suggestions from forum members:

Any Linux Server contains 3 main component:
(a) OS specific files: OS files, Networking files etc
(b) user created files like /var/www/html, application files, config files, crontab etc
(c) Database (mysql in my case)

Backup plan:
(c) For database backup use Mysql Hotcopy twice a day.
(b) For user files use rsync twice a day for specific folders which update regularly like /var/www/html, /etc/squid, /etc/asterisk etc
(a) Since OS files seldom change, I can use a monthly g4L hdd replication.
This will also cover any files which have been changed and forgotten to be rsynced.

This way both the servers can be on at all times.
In case of failure, switchover is very simple and easy.
Only loss will be of data after the last rsync+Hotcopy and before the crash.

Awaiting member's feedback and sugestions.

Thx
Vai

PS: The only downside is while doing a g4L, both servers have to be taken down, remove HDD from backup server, install it in main server and run a g4l which takes 2 hours for me for a 160 GB hdd. If there is any tool which can do HDD mirroring between 2 PCs withuot opening, then it will be great. It will save opening up servers, removing HDDs etc for a g4l.
 
Old 06-04-2009, 06:19 AM   #17
okcomputer44
Member
 
Registered: Jun 2008
Location: /home/laz
Distribution: CentOS/Debian
Posts: 241

Rep: Reputation: 51
Quote:
Originally Posted by irishbitte View Post
Jeez, this thread took off in my absence! Anyway, if you are not replicating databases, what you do when setting up rsync is you specify the files and directories that you do want backed up, rather than those you don't.

For replicating complete snapshots, perhaps you should consider Logical Volume Management or LVM: http://www.cyberciti.biz/tips/consis...snapshots.html is an idea of how this is done. I suggest testing testing testing if you are gonna use this method, but when it's working it's fantastic. An LVM snapshot can be taken at any stage, even as the system is live. The snapshot can be restored on another server, and if the main server goes down, the backup can be started almost immediately.
Yeah you are right. Basically I don't know why would anyone back up the whole machine if it is just a backup.

The rsync can manage any directory(s) or files.

So he needs to make a clone spare machine then setup the rsync to sync data between the machines. (Eg.: /data1, /data2 dirs)
 
Old 06-04-2009, 06:38 AM   #18
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 82
Yeah, I think this may be overkill, stemming from an education in virtualisation and migration of machines! It's all the rage these days, but I think it's a bit mad!
Quote:
So he needs to make a clone spare machine then setup the rsync to sync data between the machines. (Eg.: /data1, /data2 dirs)
This is exactly what the OP should do. There really is no need for the 'g4l' thing, since if you backup a corrupted system, you've got nowhere to go! Again I say to the OP, rsync is more than enough, along with mysql backups daily.

The key to getting this to work is practice. Do not find yourself in this situation having not tried out these methods! Testing testing testing, I say it again, it will pay off dividends the day your boss has you under pressure to get a machine back up and running.
 
Old 06-04-2009, 06:44 AM   #19
vaibhavs
Member
 
Registered: Jun 2008
Posts: 113

Original Poster
Rep: Reputation: 15
Sorry to sound dunb, but what is "OP" ??


The only reason to do a G4L once a month (or may be once in 3 months) is to accommodate OS level changes like an rpm install or soemthing of that nature. Ideally the OS level changes should be duplicated on the backup server too!!
 
Old 06-04-2009, 06:49 AM   #20
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 82
OP = Original Poster. Personally, I think that g4l is too much, you're giving yourself work. You would be better off spending the time configuring rsync correctly, and learning how to use it. It is a very powerful tool. I agree that you may find g4l convenient.

When I want to clone a machine, I don't pull the HDD, I just use partimage, a tool included in the systemrescuecd. It still involves halting the machine. However, it works well. I partimage the partition onto an NFS server, and clone it down onto a prepared machine. Works a charm, every time.
 
Old 06-04-2009, 06:49 AM   #21
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
original post(er)
 
Old 06-04-2009, 07:05 AM   #22
vaibhavs
Member
 
Registered: Jun 2008
Posts: 113

Original Poster
Rep: Reputation: 15
Quote:
When I want to clone a machine, I don't pull the HDD, I just use partimage, a tool included in the systemrescuecd. It still involves halting the machine. However, it works well. I partimage the partition onto an NFS server, and clone it down onto a prepared machine. Works a charm, every time.
Actually, G4L can do the cloning that way too. I can create an image and store it on a different device and then restore it on the backup server. I have never tried it, but will do it over the weekend.

So I have decided....
RSync for daily backups and should the need arise and for safety sake, I will copy the disk image once every 3 months.

Thx a lot members for your help and imputs.
Really appreciate it.

Best regards,
Vai
 
Old 06-04-2009, 07:24 AM   #23
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 82
Hope it goes well for you!
 
  


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
What should i backup on these servers? Rauldinho Linux - Server 7 09-03-2008 06:48 AM
RHEL 5 Complete Restore from backup to identical server direwolf23 Red Hat 1 04-25-2008 07:28 AM
SSH / FTP Issue - Problem connecting between two identical servers bppilot Linux - Networking 1 09-13-2007 12:18 AM
Backup Solutions for Linux Servers lionking_x Linux - General 8 03-27-2006 12:50 PM
Backup mail from IMAP servers marsonist Linux - Networking 2 08-13-2003 08:17 AM


All times are GMT -5. The time now is 08:11 AM.

Main Menu
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