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

Re: Backup of repositories

From: Juan Luis Serradilla Amarilla <juanlu_at_um.es>
Date: 2004-09-28 12:50:39 CEST

Lukas Ruf wrote:

>>Kenji Chan <adslbqmr@tpg.com.au> [2004-09-28 09:12]:
>>
>>The safe and easy way that I would do is write a simple script that
>>'zip' the whole repo into a zipped file like 20040929_repo.zip
>>
>>
>>
>
>If you know for sure that there is no access while zipping you could.
>Do not forget to stop your web-server (if running).
>
>I run
> svnadmin dump <repos> | bzip2 -9 -> <repos>.`date +%Y%m%d-%H%M`.bz2
>frequently.
>
>wbr,
>Lukas
>
>
Should I stop my web server before doing "svnadmin dump"???

For my backups, now I run "hot-backup" (hot-backup.py), and it's great.
I don't need to stop my web server, and I get a new clean repository,
with the same content, ready to use. For example, backing up my svn
repositories, from /SVN to /SVNbackups is very easy:

#!/bin/bash
for i in PERSONAL MNCS
do
        hot-backup /SVN/${i} /SVNbackups
done

I get new clean repositories under /SVNbackups. They are identified by
the repository name (root directory) and the version number:

MNCS-61/
PERSONAL-48/

Thanks.

-- 
Juan Luis Serradilla Amarilla
Área de Tecnologías de la Información
y las Comunicaciones Aplicadas (ATICA)
http://www.um.es/atica
Universidad de Murcia
Spain
Received on Tue Sep 28 12:49:25 2004

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