Re: Backup and Incremental Backup Perl Scripts
From: Aniruddha Apte <aniapte_at_gmail.com>
Date: 2005-05-19 07:51:01 CEST
Here's what we use for everyday backup. You'll need to put it in a cron job.
use strict;
my $last_backup;
@lines = `ls -tl /dumps/dump-r*`;
$_ = $lines[0];
$youngest = `svnlook youngest /project/svn/phone`;
if ($youngest == $last_backup)
print "Backed up previously till r$last_backup\n";
$dumpfile = "/project/svn/backups/dump-r$from_rev-r$youngest";
print "\n-------------------------------\nsvndump output = $status\n";
On 18/05/05, Hughes, Trystan <Trystan.Hughes@assetco.com> wrote:
> can anyone please share any possible Perl (or even Python) scripts that you or a colleague may have created to backup a Subversion repository (including incremental scripts)?
---------------------------------------------------------------------
|
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.