LinuxQuestions.org
Review your favorite Linux distribution.
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 03-23-2012, 08:57 AM   #1
maksaraswat
LQ Newbie
 
Registered: Jul 2011
Posts: 15

Rep: Reputation: Disabled
rsync between primary and backup server


Hi,

I have 2 servers primary and backup which rsync every night. Couple of days back my primary server failed and we started using backup server as the main. There was no rsync between the primary and backup during the down time of primary server.

Now the primary server is fixed and is back online with the data up to the time we stopped using it. Since backup server now has more updated data can I safely run rsync for once to copy data from backup to primary server? Once primary and backup have same data then I will start using rsync again from primary to backup.

Theoretically this should work but I am putting out this in case anyone can point out any step I should be careful about.

Any suggestions is much appreciated.

Thanks,
Mayank
 
Old 03-23-2012, 09:31 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
You should take both servers offline and prevent any users/applications from accessing both machines while you transfer the data back to primary.
 
Old 03-23-2012, 09:49 AM   #3
maksaraswat
LQ Newbie
 
Registered: Jul 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
Yep, rsync will run Fri/Sat at 1am.


Thanks for the reply.

Mayank
 
Old 03-23-2012, 06:46 PM   #4
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Quote:
Since backup server now has more updated data can I safely run rsync for once to copy data from backup to primary server?
Since your primary server was down and during the downtime of primary server, backup server acted as primary server and now your backup server has latest updated data. Now you can surely copy data from backup to primary server.
 
Old 03-26-2012, 01:36 AM   #5
centos123
Member
 
Registered: Apr 2011
Posts: 397

Rep: Reputation: 16
just run same rsync form backup server to copy into primary server.nothing to worry .just take care that do this in offline mode.or when user pc is not in use.its better one.
 
Old 03-27-2012, 10:49 AM   #6
maksaraswat
LQ Newbie
 
Registered: Jul 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
Thanks everyone for the responses. The same rsync scripts worked just had to change the paths.

--Mayank
 
Old 03-28-2012, 03:09 AM   #7
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Quote:
Thanks everyone for the responses. The same rsync scripts worked just had to change the paths.
Good to know that the things worked out for you.. Now if your problem has been solved, you can mark your thread as SOLVED.
 
  


Reply



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
how i take linux server backup By rsync webhostingsmartscom Linux - Server 7 02-01-2012 01:58 AM
Backup Rsync+SSH Server ctkroeker Linux - Server 7 03-18-2010 10:18 AM
Using RSync to backup a secondary off-site backup server pezdspencer Linux - Software 4 06-29-2007 03:40 PM
Using rsync for local server backup. Some issues. enygma Linux - Networking 0 02-03-2005 01:46 PM

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

All times are GMT -5. The time now is 06:28 AM.

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