Re: Debian upgrade
From: Dave Rolsky <autarch_at_urth.org>
Date: 2004-02-04 20:17:19 CET
On Wed, 4 Feb 2004 kfogel@collab.net wrote:
> Kai Hendry <hendry@cs.helsinki.fi> writes:
Here's a script I wrote to automate this for me, as I have a number of
#!/usr/bin/perl -w
use strict;
my ($old, $new, $version) = @ARGV;
die "Need old repo path, old repo version, and new repo path as arguments."
my $static_exe = "svnadmin-$version-1";
foreach my $old_repo ( glob "$old/*" )
my $mode = (stat _)[2];
my $new_repo = "$new/" . basename($old_repo);
unless ( -d $new_repo )
# we really want to recreate the old permissions exactly.
system( "svnadmin create $new_repo" )
system( "$static_exe dump $old_repo | svnadmin load $new_repo" )
-dave
/*=======================
---------------------------------------------------------------------
|
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.