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

RE: Repository Backup Problem

From: Gale, David <David.Gale_at_Hypertherm.com>
Date: 2006-01-11 17:36:26 CET

Shiv K. Suryavanshi wrote:
> Dear Sir,
>
> I have created a Repository named "Zed Axis Projects" based on FSFS.
> Now when I tried to take the backup of this repository
> with <svnadmin hotcopy [Current Repos Path] [Backup Repository Path]>
> command.
> It gives me the error: "svnadmin: Can't open file
> 'd:\Projects\Zed\format': The system cannot find the path specified.
> Kindly give the resolution ASAP.
>
> Warm Regards,
> Shiv K. Suryavanshi

Let's try to recreate your exact command (which, incidentally, would
have been appropriate to include in your original e-mail):

svnadmin hotcopy d:\Projects\Zed Axis Projects z:\Backup\Location

The problem here is that Windows assumes the first argument to hotcopy
ends at the first space, and so looks for a file that doesn't exist.
(Incidentally, if you tried a standard DOS command, such as "dir
d:\Projects\Zed Axis Projects", you'd get a very similar error.)
Windows allows spaces in filenames, but to get DOS to understand them,
you need to tell it that the filename is longer than it would otherwise
expect. So you need to put the paths in quotes--<svnadmin hotcopy
"[Current Repos Path]" "[Backup Repository Path]">, or, using the above:

svnadmin hotcopy "d:\Projects\Zed Axis Projects" "z:\Backup\Location"

This is a Windows "feature".

-David

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 11 17:55:37 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.