LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 11-11-2009, 05:36 AM   #1
WhisperiN
Member
 
Registered: Jun 2009
Location: Middle East
Distribution: Slackware 13.1, CentOS 5.5
Posts: 134

Rep: Reputation: 17
Question I need to RSYNC 2 Servers (Same OS, Different Arch)


Hello Fellows,
Happy Day, I hope..

Dear all, I have this thing in hand..
I few months ago had a VPS which I spent days setting up what I need into it..
And I finally got it to work like a charm.. exactly like I need.

Alright, couple days ago.. I needed to take another one, and I went through that..

Now, I have 2 VPS.. Like below:

The Old VPS:
Code:
[root@mail /]# cat /etc/redhat-release
CentOS release 5.4 (Final)
[root@mail /]# uname -a
Linux mail.Old-Domain.com 2.6.24-24-xen #1 SMP Tue Aug 18 18:15:39 UTC 2009 x86_64 x86_64 x86_64 GNU/Linux
The New VPS:
Code:
[root@mail /]# cat /etc/redhat-release
CentOS release 5.4 (Final)
[root@mail /]# uname -a
Linux mail.New-Domain.com 2.6.18-128.2.1.el5.028stab064.7 #1 SMP Wed Aug 26 15:47:17 MSD 2009 i686 i686 i386 GNU/Linux
I used this command below to rsync the /home (Web Root), and was amazing..
Code:
rsync -avhe ssh /home/websites root@DIST.SERVER.IP:/home
What I'm wondering about now, is which are the directories I need to rsync so I get the exact same setup at the other side?


That's it in short.. and again.. hope you a sunny charm-full day.

Note: I posted this earlier in Servers, and was advised to post it here

- Hasan
 
Old 11-11-2009, 06:05 PM   #2
WhisperiN
Member
 
Registered: Jun 2009
Location: Middle East
Distribution: Slackware 13.1, CentOS 5.5
Posts: 134

Original Poster
Rep: Reputation: 17
hummmm..

Any idea please
 
Old 11-13-2009, 11:10 AM   #3
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,112
Blog Entries: 1

Rep: Reputation: 124Reputation: 124
Well, you will want /root folder also. And most likely ONLY SOME of the files.

But DO NOT RSYNC directly what ever you choose!!!!!

Your kernel is not the same (Old one is HARDLY CentOS with 2.6.24 kernel) and also the arch.

I would do it ONLY by hand, service by service, daemon by daemon. Any other way is putting your head in the bag.
 
Old 11-14-2009, 08:06 AM   #4
WhisperiN
Member
 
Registered: Jun 2009
Location: Middle East
Distribution: Slackware 13.1, CentOS 5.5
Posts: 134

Original Poster
Rep: Reputation: 17
Thanks for that info..

I'd love to see other opinions..

Regards..
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rsync error on multiple servers ZigZam Linux - Software 2 01-20-2010 08:16 PM
How to Best rsync 2 boxes (Same OS, Different Arch) WhisperiN Linux - Server 4 11-11-2009 06:35 AM
Can I use rsync to create mirror two servers with different OS Deadbeat456 Linux - Server 3 06-25-2008 08:44 AM
A couple questions about Arch servers and Python vs PHP... sajro Linux - Server 2 03-08-2008 05:02 PM
Mirroring servers using RSYNC RKris Linux - Networking 1 05-15-2003 07:26 AM


All times are GMT -5. The time now is 06:26 PM.

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
Open Source Consulting | Domain Registration