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

svn: Can't open file ' . --revision/format': No such file or directory

From: prashant n <my_massoo_at_lycos.com>
Date: 2006-01-16 10:56:16 CET


i am encountering the above error ie, svn: Can't open file ' . --revision/format': No such file or directory , when i try to backup my svn repo daily thru a script. The script is as follow:

#!/usr/bin/perl -w
# Perform a daily backup of a Subversion repository,
# using the previous most-recently-backed-up revision
# to create just an incremental dump.
#use strict;
#use warnings;
my $svn_repos = "/cvs/satrang/software";
my $backups_dir = "/home/svnbkp";
my $next_backup_file = "daily-incremental-backup." . `date +%Y%m%d`;
#print "*$next_backup_file*\n";
open(IN, "$backups_dir/last_backed_up");
$previous_youngest = <IN>;
chomp $previous_youngest;
close IN;
my $youngest = `svnlook youngest $svn_repos`;
chomp $youngest;
if($youngest eq $previous_youngest) {
print "No new revisions to back up.\n";
exit 0;
# We need to backup from the last backed up revision
# to the latest (youngest) revision in the repository
$first_rev = $previous_youngest + 1;
$last_rev = $youngest;
print "\n....Backing up revisions $first_rev to $last_rev...\n";
$svnadmin_cmd =`svnadmin dump --incremental " . "--revision $first_rev:$last_rev ". "$svn_repos > $backups_dir/$next_backup_file`;
print "\n...Compressing dump file...\n";
print `gzip -9 $backups_dir/$next_backup_file`;
open LOG, ">$backups_dir/last_backed_up";
print LOG $last_rev;
close LOG;

How to overcome this error?

Search for businesses by name, location, or phone number.  -Lycos Yellow Pages
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jan 16 10:59:14 2006

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.