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

permissions problem while using 'svnadmin hotcopy'

From: Vivek Payala <vivek_payala_at_persistent.co.in>
Date: Mon, 17 Mar 2008 10:48:06 -0000

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 script execution 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.
Received on 2008-03-17 11:48:53 CET

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.