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

Re: Re: Backup a repository

From: Karen Tracey <kmtracey_at_gmail.com>
Date: 2007-04-19 20:14:51 CEST

On 4/19/07, Erik Hemdal <erik@comprehensivepower.com> wrote:
>
> > If you guys could tell me that I cannot simply tar a
> > repository on a Linux server and untar it on a Windows
> > machine and expecting it to work because of this and that,
> > that I can go to the Big Guy and say, look we can't do it
> > this way, let's use the dump/load.
>
> I'd be quite surprised if this worked, and I'd definitely be interested in
> knowing how you did it if this is what you are intending. Were I in your
> shoes, I would most certainly test this before making it my backup plan
> and
> then I would periodically retest to make sure I knew how to do it and that
> it still worked.

You can indeed tar a repository that uses the FSFS backend on a Linux
machine and then un-tar and serve it from a Windows box, because FSFS is in
fact architecture independent. From
http://svnbook.red-bean.com/nightly/en/svn.reposadmin.planning.html#svn.reposadmin.basics.backends.fsfs:

"Unlike a Berkeley DB database, this storage format is portable across
different operating systems and isn't sensitive to CPU architecture."

I just gave it a quick try and it worked (that is, a checkout of the
"restored" repository succeeded). It's still not a safe backup method,
unless you can guarantee nothing is changing in the repository as it is
being tar'd.

Karen
Received on Thu Apr 19 20:15:10 2007

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