LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 10-28-2010, 07:24 AM   #1
melkoraton
LQ Newbie
 
Registered: Jan 2010
Posts: 10

Rep: Reputation: 0
Directory mirroring


We have production servers with a php application worling with apahce and mysql. The application also saves files to the filesystem. We aré looking for a way to have a sync mirrored filesystem, or only the folders that the php app uses so that if the main server Fails we can redirect the apps to this mirrored filesystem. Is there a way to have this mirrored filesystem synqed at all times?
Thx
 
Old 10-28-2010, 07:30 AM   #2
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
Try rsync

http://www.howtoforge.com/mirroring_with_rsync

http://www.howtogeek.com/wiki/Tweaki...ual_Web_Server

http://www.arraystudio.com/as-worksh...-computer.html
 
1 members found this post helpful.
Old 10-28-2010, 08:26 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
I think the right tool for you is gamin, maybe in connection with rsync.
 
Old 10-28-2010, 09:22 AM   #4
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Rep: Reputation: 107Reputation: 107
See this link. This is the best one IMHO. Even I learned from this link only.

http://www.linuxquestions.org/linux/...etween_servers
 
Old 10-28-2010, 09:49 AM   #5
melkoraton
LQ Newbie
 
Registered: Jan 2010
Posts: 10

Original Poster
Rep: Reputation: 0
ya but rsync consumes a lot of CPU if you have it running all the time, doesn't it?
 
Old 10-28-2010, 10:02 AM   #6
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Rep: Reputation: 107Reputation: 107
NO it does not.
RYNC only copies new or modified files/folder.

Also, you need not keep running it all the time. You can schedule it in crontab on hourly or minute basis.

Other way to have a exact copy of the filesystem is to use RAID 1.

Last edited by vikas027; 10-28-2010 at 10:04 AM.
 
  


Reply

Tags
mirror, mirroring, replication



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
Configuring Fedora Directory Server for Mirroring nsenkum Fedora 3 03-17-2010 12:46 AM
[SOLVED] mirroring a directory netimen Linux - Networking 8 11-01-2009 05:11 PM
Directory/folder mirroring utility? paulsh2k4 Linux - Software 2 09-14-2004 02:44 PM
Directory mirroring? Narooze Linux - Software 2 07-01-2004 08:51 AM
rync (mirroring a directory) bkeating Programming 2 06-25-2003 05:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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