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

Re: back up / two separate disks

From: Gary Thomas <gary_at_mlbassoc.com>
Date: 2005-09-28 10:58:00 CEST

On Wed, 2005-09-28 at 10:38 +0200, Dimitri Papadopoulos-Orfanos wrote:
> > You can use software RAID if you wish...
>
> It means configuring things. Unfortunately the sysadmins here don't have
> time for that, they only purchase ready-to-use solutions.
>
> Besides I had once seen a raid crashing, but I haven't yet seen two
> disks crashing at the same time.
>
> Is there any solution involving two disks?

What I do is keep a directory with running copies of every commit,
updated during the post-commit hook. This can be anywhere of course,
not related at all to where the actual repository is kept. Just add
a line like:
  svnadmin dump "$REPOS" --revision "$REV" --incremental --deltas >/var/svn/dumps/change.$REV 2>/dev/null
where '/var/svn/dumps' is the name of the backup directory. You could start out
by writing a little script to generate all of the changes to date, or just
with a full dump. Then to restore your repository is as simple as creating
a new one, loading in the "full" dump and all of the changes in order.

n.b. svnadmin dump does not dump the support files like the hooks directory,
so you may also want to keep a copy of those for easy restoration.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Sep 28 11:00:23 2005

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