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
[...]
Sometimes, taking a few minutes to do a simple thing will save you a headache down the road. Like changing the oil in your car, or brushing your teeth every night, or automatically backing up your databases.
The development server that I mess around on has recently accumulated a lot of data that I really don’t [...]
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.