Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Basically I plan to have some files mirrored on multiple servers on different providers.

A unique cname will auto-balance the traffic across all available mirrors and will serve from the closest to the user. What I am afraid is the following:

What if the hosting sponsor gets hacked or the content hosted gets modified in any way and any reason. How do I prevent that from happening? Is there any way to ensure all servers contain 100% unmodified content?

  • Load balancing is DNS based so there is no way to test before sending the user over there.
  • There are at least 5000files mirrored across the servers
share|improve this question
    
If there was a 100% way to prevent hacking, don't you think it'd have been implemented everywhere already? –  ceejayoz Jun 1 '13 at 21:39
1  
I didn't say I want to prevent hacking. I want in case it gets hacked the content wont get served to the users. Since this is not a website and just static files I thought there should be a way to somehow validate the integrity. –  Jim Jun 1 '13 at 21:41
    
Why not use a CDN and let Amazon, Akamai, etc. handle that security for you? –  ceejayoz Jun 1 '13 at 21:44
1  
Sorry but using a CDN is not applicable. The task is to utilize sponsored servers and hosting and maintain malware free network of content. –  Jim Jun 1 '13 at 21:48
1  
You're talking about implementing a CDN, so at least considering a third party CDN isn't unrealistic. –  Michael Hampton Jun 1 '13 at 21:54

1 Answer 1

Have you looked into using rsync? It's used often to push the same files making up e.g. source code repositories to mirror sites. For example

rsync -rtvuc src_folder/ dst_folder/

Options exist for doing this over ssh, preserving permissions, timestamps etc. One size doesn't fit all, you'll need to man rsync and experiment.

share|improve this answer
    
You mean just run rsync once in a while and overwrite changed files? –  Jim Jun 1 '13 at 21:55
2  
You didn't specify a platform. In Unix, a cron job can run periodically and will update only what changed (if anything) –  BostonDriver Jun 1 '13 at 22:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.