LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 05-19-2008, 09:01 PM   #1
dragos19
LQ Newbie
 
Registered: Aug 2006
Location: los angeles
Distribution: centos, mac os x
Posts: 17

Rep: Reputation: 0
duplicating a live server with rsync?


I have a project coming up and I need some advice/insight. Here is the situation: I have a client who is renting a server and he feels he is paying too much. He asked me to purchase a server for him and install it in a data center. It's a LAMP server that hosts a few different websites. I will have physical access to the new machine but probably not to the current (rented) machine.

Getting in the business of reconfiguring all the DNS and Apache stuff will be real pain. What I want to try instead is a simple clone of the old to the new with rsync over ssh. I can almost guarantee that the servers won't have the exact same hardware.

My questions:

Do you think rsync will work on a live server? Won't the live server have some swap files or whatever that won't be copied over and I will potentially have a bad copy?

Do you think that the only way to get a good initial rsync on the machines is to have physical access to both of them?

What would be the ideal way of doing this (besides getting the exact same machine and having physical access to both and doing a dd type thing).



I am open to suggestions. Thanks!
 
Old 05-20-2008, 01:59 PM   #2
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
You can duplicate the live server with rsync without many problems. You just can't rsync the entire system though. You will still need to configure DNS and Apache, but you can use the configuration files from the live system as a starting point. Your MySQL database won't copy over very well either. As far as web pages or apps, you can do something like the following from your new server after networking is configured:

Code:
rsync -ave ssh old.server.com:/path/to/webpages /path/to
HTH

Forrest
 
  


Reply

Tags
data, dd, duplication, migration, rsync, server



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
duplicating and backing up a server rblampain Linux - Server 4 09-30-2007 12:43 AM
Rsync from Server wh33t Linux - Software 3 09-05-2007 02:51 PM
Migrating a live filesystem with rsync? ricbax Linux - General 11 12-18-2006 09:59 PM
Rsync server vs rsync over ssh humbletech99 Linux - Networking 1 10-18-2006 12:10 PM
duplicating Unix server on LAN (Perl / html) PerlUser Linux - Networking 1 08-06-2003 02:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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