Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I was wondering how or if it is possible to synchronize/mirror a server. I use slackware 10.2 and just have been looking but can't find any information. If anybody could help me out, that would be great.
Basically what I would like to do is say about every 30 minutes to copy all the new files from server A to server B so they are the same and say if server A blew up and we switched the network cable to server B, everything would be find with no loss of data.
Thanks
Last edited by cereal83; 01-10-2006 at 10:55 PM.
Reason: me have badder spelling
Rsync does sound like a good solution here and I am just wondering if there is another program. I am testing out rsync right now and do like it I am just wondering if there is something else for peice of mind.
Basically I have a web/sql server. I want to clone the server so incase the harddrives blow, we loose as little data as possible. If we like sync the important webpage and database files to another computer every 30 minutes or so then we loose little data and will be able to restore much quicker then restoring a backup of the day before since more data will be lost.
That freezing the files at a certain point and then transfering them seem like a really good solution too. I will look into the shortly after the rsync.
So I am checking into the rsync right now and will reply back if this is a bad solution for me or a good one.
Today, there really isn’t a good alternative to rsync, because of all of the built-in features. It’s even a good substitute for cp on the local system when you need to do some complex copying or backing up.
Thanks for all the info. I am reviewing all of it now. If I have any other questions I will be sure to reply back on here. After reading alot about it, it does seem like a great solution and it does have tons of features as you mentioned.
Well I was playing with rsync and it's good but I do have some problems. First, it's very slow. I can ftp a file from one computer to another and get 35 mb/sec and when I use rsync in the same exact case, it goes from like 3 mb/sec to 13 mb/sec and everywhere inbetween. Another thing is that it has a 2 GB file limit on files and thats no good since some files are much larger then 2 GB.
You are correct in noting the apparent slow transfer rate, but it isn’t as big a deal as you might think.
The first time you do the transfer, the overall transfer will typically be slow compared to subsequent transfers. On subsequent synchronizations, rsync only transfers files that have changed, thus saving a lot of bandwidth, unless everything changes between synchronizations.
Even then, rsync doesn’t necessarily transfer the entire file to make the needed changes. So, one reason the transfer rate appears to be slow is because rsync is “thinking”.
Regarding the 2GB limit, I have read (but have never tried it) that making the transfer through an explicit ssh connection (-e ssh) overcomes the 2GB limit. Let me know if it works for you.
Hello and thanks again for a reply. I will try it again with the ssh enabled and see if that works. It is a very good little program and will report when I try it and see if it works
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.