UNIX: Find command

Common uses for the FIND command.

1. find all hidden .svn folders and delete them

find /path/to/search -name '.svn' -type d -exec rm -rf '{}' \;

2. find all hidden .svn folders and print them

find /path/to/search -name '.svn' -type d -print

SVN: Subversion Server + MAC

This tutorial assumes that you have already installed the SVN binaries, and modified your PATH to the svn/bin.

Step 1: Creating a local repo

svnadmin create /path/to/repo

Step 2: Change the default configurations, svnserve.conf

[general]
anon-access = none
auth-access = write
authz-db = authz
password-db = passwd
realm = Subversion Server

Step 3: Edit the authz file

[groups]
admin = alex, bob, cathy
engineers = donny, emily
producers = frank
visitors = greg

[/]
* =
@admin = rw
@engineers = rw
@producers = rw
@visitors = r

Step 4: Edit the passwd file

[users]
alex = pw1
bob = pw2
cathy = pw3 (... and so forth)

Step 5: Chmod the entire repo directory

cd /path/to
find repo -exec chmod 777 '{}' \;

Step 6: Start the svn server

svnserve -d -r /path/to/repo

Step 7: Do a sample checkout

svn co svn://localhost /download/path --username bob --password pw2

Hopefully it works :) Oh yea, and to restart the server, you can use the command killall svnserve