[Drawkit] File format extensions

Eric Jarvies 7 at ericJarvies.com
Thu May 15 23:10:16 PDT 2008


Graham,

it should be fairly straight forward...

dump existing repo:
svnadmin dump /path > draw_kit_repo.svn_dump
tar zcf draw_kit_repo.tgz draw_kit_repo.svn_dump
scp draw_kit_repo.tgz newhostname:/path

create your new repo on new server/host:
cd /path/to/new
svnadmin create draw_kit_repo
tar zxf draw_kit_repo.tgz
svnadmin load draw_kit_repo < draw_kit_repo.svn_dump

i would suggest you force subversion to use the same UUID for the new  
repo as the old repo, by adding --force-uuid to your svnadmin load  
command.  if you've already loaded the repo, you can set the UUID  
later, but it's better to do it from the get-go.

the dump file will be a lot larger then the repo itself, as it  
contains all versions.  if you want to save on disk space, use the - 
deltas switch, thus making successive revisions of files output as  
compressed, binary differences, like file revisions are stored in the  
repo.

can also do:
svnadmin dump [old_repo] | ssh-C [host] svnadmin load [new_repo]

i trust there will not be anyone posting any revisions to your old  
repo during the time of your dump, but in case it does happen, you can  
of course import any new revisions from the old repo to the new repo  
by creating an incremental dump:
svnadmin load /path < rev123.svn_dump
and then import the above revision from the old server to the new one  
using:
svnadmin load /path < rev123.svn_dump

if need-be, to save time, in the new repo, you can turn off the  
syncing feature(just for the import) to speed things up:
svnadmin create --fs-type bdb --bdb-txn-nosync repos
then do the import, then turn on syncing again by editing the repos/db/ 
DB_CONFIG file editing out the line:
set_flags DB_TXN_NOSYNC
then recover the repo:
svnadmin recover repos

good luck!

are you going to install a trac front-end for the new repo?

regards,

eric






On May 15, 2008, at 11:09 PM, Graham Cox wrote:

> Hi Eric,
>
> Thanks for the offer! I actually have the repo all set up and ready  
> to go, so it's not the hosting that's the issue, it's transferring  
> from the current repo without losing the history. I know I need to  
> do a dump but it's not clear how one can do that from a remote host.
>
> cheers, Graham
>
>
>
> On 16 May 2008, at 12:08 pm, Eric Jarvies wrote:
>
>> Graham,
>>
>> I would be willing to setup an svn/trac repo for DrawKit, and  
>> provide read/write access to the server(ssh/etc.).  drawkit.net  
>> domain is available, so that could be registered, and the repo  
>> could be given svn.drawkit.net / trac.drawkit.net(or whatever).
>>
>> Eric
>
> _______________________________________________
> Drawkit mailing list
> Drawkit at lists.apptree.net
> http://lists.apptree.net/listinfo.cgi/drawkit-apptree.net



More information about the Drawkit mailing list