You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Vivek Payala <vi...@persistent.co.in> on 2008/03/14 17:25:23 UTC
permissions problem while using svnadmin hotcopy
Hello,
I have scheduled my SVN repositories to be backed up using 'svnadmin
hotcopy'. I wrote a small wrapper script which gets the list of SVN
repositories and backs them one after the other. However I observed that
after the hotcopy is over my source repositories group ownership becomes
read/execute, which earlier used to be 'rwx'. I thought hotcopy is supposed
to take online backups. But if this is the case I would have problems taking
backup using hotcopy. Could you please let me know how to fix this.
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
$backuppath/$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 e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.