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

Please refer the image at

http://oi51.tinypic.com/1zd6r9h.jpg

We are about to setup a new network for our lab and following are the servers we are thinking of having

  • File server (Samba)
  • SVN server
  • Web servers (Running Apache and Tomcat)
  • Development workstations.

We have purchased a "Yamaha rtx1200" router which will work as firewall/VPN.We need to access SVN and Samba servers over the internet (via VPN).

We are thinking of hosting Samba server ,SVN server and Webservers(Apache,Tomcat) in one physical server.

1.We need some data protection(for SVN repos and Samba)but dont want to have seperate backup servers for this.I was wondering whether a Server with RAID support enough for this task (less configuration involved)?

2.Since we access SVN through HTTP how to restrict people outside the network access SVN ? Shall we use SVN over HTTPS and block HTTPS to the outside?

Any tips and suggestions ?

Thanks in advance.

share|improve this question

1 Answer 1

up vote 5 down vote accepted
  1. Never, ever, use RAID as a substitute for backups. Accidentally delete a file, or have a crash that corrupts data, and the RAID will do you no good. Back up!

  2. Definitely serve SVN over https; no reason not to. The mod_dav_svn module is a good way to do the SVN hosting, and preventing access from outside is easy with Apache.

To prevent access from outside, simply set something like this up for the SVN directory:

<Location /svn>
    # typical SVN setup:
    DAV svn
    SVNPath /path/to/repo
    AuthType Basic
    AuthUserFile /path/to/htpasswd
    Require valid-user

    # block outside users:
    Order deny,allow
    Deny from all
    # Enter your internal network's subnet below:
    Allow from 10.0.0.0/8
</Location>
share|improve this answer
    
Thanks Shane.Will using an external backup drive and a utility like "rdiff" will do it? –  umanga Mar 24 '11 at 3:46
1  
+1. RAID will happily allow you (and certain users) to delete every single file on your filesystem. –  Stefan Lasiewski Mar 24 '11 at 3:48
1  
@umanga rdiff-backup is a good solution for small-scale backup, for sure. Depending on how much you value the data, I'd give some thought to getting a copy off-site, even if it's just carting a drive somewhere once every few months. –  Shane Madden Mar 24 '11 at 3:59
1  
+1 for RAID is not a backup. Also, if you care at all about this data, do offsite backups now. Recent events (Christchurch NZ earthquake, Japan earthquake and tsunami) have shown how easy it is for buildings to get destroyed, and if your backup is buried along with your server under a pile of rubble, it's not much use to you. Bringing your external disk into work with you every day just exposes you to risk, so have multiple disks and rotate through them so you always have the latest one offsite. –  Daniel Lawson Mar 24 '11 at 7:38

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.