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

Re: [TSVN] How do you backup/restore a local repository

From: SteveKing <steveking_at_gmx.ch>
Date: 2004-10-20 19:52:26 CEST

Russell Munk wrote:

> I've set up a local repository (BDB) on my Win2K machine and
> imported/checked-out my files. I now want to include the repository in
> my backup. Should I just backup the repository folder? Would simply
> restoring the backup restore the repository to a working condition?

As long as you can be _absolutely_ sure that no one else is accessing
the repository (neither reading or writing), then you can simply copy
the repository folder to your backup tape/hd/...

But if you can't be sure of that, then you should use the svnadmin
command (you get the svnadmin tool when you download the Subversion
command line client). Then you can do the following:
svnadmin hotcopy path/to/repository path/to/backup

This is also the recommended way because it's much safer.


   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Wed Oct 20 20:57:09 2004

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.