[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: Hughes, Trystan <Trystan.Hughes_at_assetco.com>
Date: 2005-05-19 09:47:19 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"

Where exactly are the $1 and $2 values coming from (the values that get assigned to REPOS and REV respectively?

Thanks

Tryst

        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
                  

The views expressed in this e-mail are not necessarily the views of AssetCo Group Limited,
its directors, officers or employees make no representation or accept any
liability for its accuracy or completeness unless expressly stated to the contrary.
This e-mail, and any attachments are strictly confidential and intended for the addressee(s) only.
The content may also contain legal, professional or other privileged information. Unless expressly
stated to the contrary, no contracts may be concluded on behalf of AssetCo Group Limited by means of
e-mail communication. You may report the matter by calling us on +44 (0)118 906 8000.
Please ensure you have adequate virus protection before you open or detach any documents from this
transmission. AssetCo Group Limited does not accept any liability for viruses. AssetCo Group Limited
is registered in England: Company number: 4450947
Registered Office: Davidson House, Forbury Square, Reading, Berkshire RG1 3GA
Received on Thu May 19 09:46:29 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.