Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2009
    Posts
    1,320

    Question 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?

  2. #2
    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

  1. rsync and whm backup question
    By florenceit in forum Web Hosting
    Replies: 8
    Last Post: 01-23-2010, 05:51 PM
  2. Which folders should I exclude from a whole server backup ? (Rsync )
    By roberts118 in forum Hosting Security and Technology
    Replies: 5
    Last Post: 11-15-2008, 04:26 AM
  3. What is the best way to get backup from linux server to windows same as rsync
    By yajur in forum Hosting Security and Technology
    Replies: 2
    Last Post: 11-05-2008, 10:57 AM
  4. rsync to remove server, backup solution
    By GS-Dylan in forum Hosting Security and Technology
    Replies: 1
    Last Post: 05-01-2008, 09:37 PM
  5. Rsync - backup question
    By SmartTux in forum Hosting Security and Technology
    Replies: 5
    Last Post: 03-30-2006, 05:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •