26 May 2008 coywolf   » (Journeyer)

How I put a website under SVN

<VirtualHost *>
RedirectMatch 404 .*/\.svn(/|$)

$ cd /var/
$ tar zcf /tmp/foo-src.tar.gz www-foo \
--exclude=www-foo/htdocs/photos --exclude=...
$ cd /tmp
$ newgrp www-data
$ tar zxf foo-src.tar.gz
$ exit
$ svnadmin create /srv/scm/www-foo
$ svn import www-foo file:///srv/scm/www-foo

$ cd
$ svn co file:///srv/scm/www-foo
$ cd www-foo
$ find . -name .svn | xargs tar zcf /tmp/foo-svn.tar.gz
$ cd /var/www-foo
$ tar zxf /tmp/foo-svn.tar

$ rm -rf /tmp/www-foo
$ rm /tmp/foo-src.tar.gz /tmp/foo-svn.tar.gz

$ newgrp www-data
$ umask 27
$ exit

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!