What is a safe way of backing up a shared bzr repository

John Arbash Meinel john at arbash-meinel.com
Tue Nov 20 02:16:57 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Aaron Bentley wrote:
> Robert Collins wrote:
>> On Tue, 2007-11-20 at 10:56 +1000, Ian Clatworthy wrote:
>> Be very aware that with packs you will be excluding other writers for
>> much much longer than bzr needs to create a consistent copy, if you take
>> anything other that option 3.
> 
> With option 3, you've got to be very careful to avoid letting people
> commit to branches until you've copied all of them.  Option 1 ensures
> that no one can create branches with unreferenced last_revisions, and
> then cause you to mirror them.
> 
> Aaron

Well, you can find the list of branches and their last-revision before you
start fetching data.
So even if they are changed after the fact you still have a consistent view.
(Assuming nobody uncommits and garbage collects the repository while you are
fetching.)

In fact, you don't even need a write lock if you do it in this fashion.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHQkOZJdeBCYSNAAMRAv58AJ4/yRSh8bwkODsBIeMrgQm9LnDIMwCeNVQT
36IdXJmWp35Dq0MroZdKRfQ=
=MQDT
-----END PGP SIGNATURE-----



More information about the bazaar mailing list