[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Backup and Incremental Backup Perl Scripts

From: Edward Q. Bridges <ebridges_at_eqbridges.com>
Date: 2005-05-19 03:26:01 CEST

Here's what I use:

    #!/bin/bash

    REPOS=$1
    REV=$2

    BACKUP_DIR=/var/backups/subversion
    FILENAME="$BACKUP_DIR/$REV-"`/bin/date +'%F-%H%M.incr.gz'`

    `svnadmin dump $REPOS --revision $REV --incremental | gzip > $FILENAME`

This gets called from the post-commit hook script like so:

    /usr/lib/subversion/hook-scripts/incremental-backup.sh "$REPOS" "$REV"

HTH
--e--

Hughes, Trystan wrote:

>Hi all,
>
>can anyone please share any possible Perl (or even Python) scripts that you or a colleague may have created to backup a Subversion repository (including incremental scripts)?
>
>It would be a great help
>
>Thanks
>
>Tryst
>
>
Received on Thu May 19 03:28:46 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.