permissions problem while using svnadmin hotcopy
From: Vivek Payala <vivek_payala_at_persistent.co.in>
Date: Fri, 14 Mar 2008 17:25:23 -0000
Hello,
I have scheduled my SVN repositories to be backed up using 'svnadmin
I am pasting my script below for reference.
#!/usr/bin/perl
#######################################################################
# Author: Vivek Payala #
# Purpose: For backing up SVN repositories on Master using HotCopy #
# Usage: ./hotcopy.pl #
#######################################################################
use strict;
use warnings;
my $svnreporoot = "\\/usr\\/local\\/svnroot";
my $backuppath = "/home/svn/backups_svnroot";
my @svn_reps = glob("$svnreporoot/*");
my @mods_bkp;
my $sysCmd = "rm -rf $backuppath/*";
system $sysCmd and die $!;
for my $svn_repo_path (@svn_reps)
{
my @svnModNames = reverse (split /\//, $svn_repo_path);
my $modName = shift @svnModNames;
push @mods_bkp, $modName;
print "Backing up $modName \n";
$sysCmd = "svnadmin hotcopy $svnreporoot/$modName
system $sysCmd;
}
Thanks,
Vivek Payala
Group Lead - SCM
Professional & Managed Services Group
Persistent Systems Limited
Direct: +91-20-30236447
Board:+91-20-30234000; Extn: 6447
Fax : +91-20-30234001
http://www.persistentsys.com <http://www.persistentsys.com/>
DISCLAIMER
|
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.