11 Sep
by: Matt in Development, Infrastructure
Just wanted to post this quick bash script to iterate over the repositories in a directory, perform an svnadmin hotcopy, and tar/gzip the output.
By using hotcopy this can be performed on a live subversion repository and will produce a pristine backup.
#!/bin/bash
REPOS_PATH=/var/repos
mkdir -p /backups/weekly
rm -rf /backups/tmp
mkdir -p /backups/tmp/repos
for i in $(ls $REPOS_PATH); do
[...]
09 Apr
by: Matt in Development, Infrastructure
tags: auto-props, enable-auto-props, propset, svn
It’s quite the pain in the ass to manually propset for each new file added.
Edit the file .subversion/config and scroll down towards the bottom… find the [miscellany] block and uncomment the line enable-auto-props = true
In the group of options below titled [auto-props] and add a line like:
* = svn:keywords=Id Date LastChangedBy Revision
18 Mar
by: Matt in Development, Infrastructure
tags: keyword substitution, subversion, svn, svn:keywords
Ever see those pretty comments at the top of a source code file under version control via subversion? It’s really rather simple to setup.
Assuming you’re past the point where you have a repository with files already under version control, you simply add in wherever you want the substitution to occur the variable name surrounded [...]
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.