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

Re: how to backup repository with all history?

From: Les Mikesell <lesmikesell_at_gmail.com>
Date: Tue, 10 Feb 2015 09:49:20 -0600

On Mon, Feb 9, 2015 at 10:25 PM, James <oldyoungguy88_at_yahoo.com> wrote:
> I have few repositories in my svn-root directory.
> I have put a conf folder at the same level as other repositories. that conf
> folder contains a authz and a passwd file which are shared by all
> repositories. By doing this I can setup users and their privilege in one
> place. But because of this conf folder, I cannot do hotcopy automatically. I
> am thinking just tar all of them daily.
> My purpose of backup is just in case my machine die. So how big the
> difference will be for my tar approach and the hotcopy?

If you are sure that no changes can happen during the tar run, that
should be fine - or rsync to another system might be more efficient.
But with any backup approach you need to understand that you can't
continue to use existing working copies that might have newer
revisions than the restored backup. You would have to check out a
fresh copy, then copy over any new work you want to keep from the old
working copy and commit again.

And yet another alternative if you have another system to hold the
data (and it's not much of a backup if you don't...) would be to
svnsync each repository and rsync your common config.

   Les Mikesell
Received on 2015-02-10 16:50:33 CET

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.