After the confusion when synchronizing my document repositories using rsync and SMB, finally I’ve had enough. I think this is a good time to give SVN (Subversion) a try.
Pretty simple in Ubuntu, as usual :
sudo aptitude install subversion
sudo aptitude install subversion-tools
Create the repository :
svnadmin create /home/harry/svnrepo
svn mkdir file:///home/harry/svnrepo/docs
Before we can run the server, first we need to edit /home/harry/svnrepo/conf/svnserve.conf and edit as necessary.
(hint: anon-access = read, auth-access = write, password-db = passwd)
And then don’t forget to setup the usernames and passwords in /home/harry/svnrepo/conf/passwd.
Now we can run the SVN server :
svnserve -d -r /home/harry/svnrepo/
Import my documents into the just-created SVN repository :
svn import /home/harry/documents svn://192.168.1.88/docs/ -m "initial import" --username sufehmi
That’s it ! Now you have a fully functioning SVN repository and have it host your documents.
Good reading on the subject :
That should do for now. Gotta run.