Results 1 to 2 of 2
-
05-16-2011, 05:58 AM #1Web Hosting Master
- Join Date
- Apr 2009
- Posts
- 1,321
Question about RSYNC for server backup
Sample scenario:
Server 1 with 1TB of files RSYNC to backup server. If server 1 hard drive fails, I replace the hard drive and RSYNC the files from backup server back to server 1.
I plan on running RSYNC every night at a specific time. The problem is server 1's files are constantly changing. How do I make sure that server 1 and backup server will have the same exact files?
For example:
5/15/2011 - server 1 has 500 files
5/15/2011 - backup server has 500 files
5/16/2011 - server 1 has 510 files
5/16/2011 - backup server runs RSYNC and grabs the new files but what about the old files that server 1 no longer has, does those files automatically delete from backup server after I run RSYNC?
-
05-16-2011, 06:16 AM #2Web Hosting Master
- Join Date
- Nov 2005
- Location
- Minneapolis, MN
- Posts
- 1,648
It will automatically delete files on the target that don't exist at the source if you use the "--delete" option flag (or its shortcut).
Eric Spaeth
Enterprise Network Engineer :: Hosting Hobbyist :: Master of Procrastination
"The really cool thing about facts is they remain true regardless of who states them."
Similar Threads
-
rsync and whm backup question
By florenceit in forum Web HostingReplies: 8Last Post: 01-23-2010, 05:51 PM -
Which folders should I exclude from a whole server backup ? (Rsync )
By roberts118 in forum Hosting Security and TechnologyReplies: 5Last Post: 11-15-2008, 04:26 AM -
What is the best way to get backup from linux server to windows same as rsync
By yajur in forum Hosting Security and TechnologyReplies: 2Last Post: 11-05-2008, 10:57 AM -
rsync to remove server, backup solution
By Dylan K in forum Hosting Security and TechnologyReplies: 1Last Post: 05-01-2008, 09:37 PM -
Rsync - backup question
By SmartTux in forum Hosting Security and TechnologyReplies: 5Last Post: 03-30-2006, 05:37 PM