Membership Membership:
Latest New User Latest: vpros
Past 24 Hours Past 24 Hours: 0
Prev. 24 Hours Prev. 24 Hours: 0
User Count Overall: 137

People Online People Online:
Visitors Visitors: 68
Members Members: 0
Total Total: 68

NakedMCSE Computer Tech Support Forums

So you have passed all of the exams and you are now out in the real world of windows servers, linux servers and freebsd servers faced with a tech support problem you have never seen before...

Find free online tech support in the forums below, respecting that advice is free, but work beyond advice is not...

The General forum is provided for off topic discussion.

You need a user account to post - please Register or Login.

Online Tech Support Forums
 
  Forum  Open Source Tec...  Linux Server  Using SVN for revision control of etc and other configuration files
Previous Previous
 
Next Next
New Post 4/26/2011 5:25 PM
Informative
  Walker
119 posts
www.lairdscomputer.com
10th Level Poster


Using SVN for revision control of etc and other configuration files 
Modified By Walker  on 5/18/2011 3:45:40 PM)

To use SVN to control changes to config directories is a little counter intuitive.  The following is the simplest way to do it, using my nginx configuration file as an example:

Create Repository:
svnadmin create /var/svn/repos/nginxconfig

Edit user account:
vi /var/svn/repos/nginxconfig/conf/passwd
Create user = password line (say admin = somepass)

Edit authentication:
vi /var/svn/repos/nginxconfig/conf/svnserve.conf
Uncomment the anon-access, auth-access and password-db lines

Perform initial commit:
svn import /usr/local/nginx/conf svn://localhost/nginxconfig -m "Initial Import" --username admin

Perform initial checkout:
mkdir ~/tempcodir
svn checkout svn://localhost/nginxconfig --username admin ~/tempcodir

Move .svn to real directory:
mv ~/tempcodir/.svn /usr/local/nginx/conf

or if it is more complex than a single directory:
find . -iname ".svn" -type d -exec mv {} /where/the/real/files/are/{} \;

To show differences:
svn diff

To commit a new revision:
svn commit -m "Revision Notes"

This allows you to have revision control against your configuration files simply and easily.  Using SVN for the /etc directory would allow you to have revision control against most of the config files.

You can delete the ~/tempcodir when done.

Walker
www.lairdscomputer.com
 

 
Previous Previous
 
Next Next
  Forum  Open Source Tec...  Linux Server  Using SVN for revision control of etc and other configuration files
Send me One Million FREE Guaranteed Visitors