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

remote svn dump?

From: Andreas Jellinghaus <aj_at_ciphirelabs.com>
Date: 2005-09-26 12:12:58 CEST

Hi,

I tried a poor mans backup:
#!/bin/sh

Y=`svnlook youngest test`
svnadmin dump -r $Y http://www.opensc.org/svn/test \
          |svnadmin load test

that doesn't work, svnadmin dump only works on local directories.
is there any alternative that works on remote repositories?

note: svn mirror doesn't work for me either:
 - it creates bdb repositories
 - it does something strange with the path, right?
 - I tried like this:
#!/usr/bin/perl -w

use strict;
use SVN::Mirror;

my $ru = "http://www.opensc.org/svn";
my $lr = "/home/aj/mirror";

chdir $lr or die "can't cd to $lr: $!\n";

foreach my $r ("test") {
        my $m = SVN::Mirror->new(source => "$ru/$r/",
                        repos => "$lr/$r/",
                        target_path => "",
                        repos_create => 0
                        );
        $m->run;
}

but
Can't call method "path" without a package or object reference
at /usr/share/perl5/SVN/Mirror.pm line 85.

so it doesn't seem to work for me either.

I want a 100% copy of the remote server, so in case that
machine crashes I have a backup. I'd prefer to do that
over http a lot. I know that a dump will not include
hooks and config files etc, but those are fine, my regular
backup not done often enough will include those.

so do you know a svn dump utility for http://?
or any other suggestion for a simple backup of
a public remote http repository?

Thanks, Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Sep 26 14:06:04 2005

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