简体   繁体   English

Cygwin中的svnadmin转储

[英]svnadmin dump in Cygwin

I'm trying to write a script in Cygwin to backup our SVN repositories nightly. 我试图在Cygwin中编写脚本,以每晚备份我们的SVN存储库。 The first stumbling block I found is that the svnadmin doesn't seem to work quite right within the cygwin bash shell. 我发现的第一个绊脚石是svnadmin在cygwin bash shell中似乎工作不正常。

My repositories are in C:\\Repositories 我的存储库位于C:\\ Repositories

Doing the following in a cmd shell works fine 在cmd shell中执行以下操作正常

svnadmin dump C:\Repositories\Thor > Thor.dmp

But the following within cygwin does not 但是cygwin中的以下内容不

svnadmin dump /cygdrive/c/Repositories/Thor > Thor.dmp

And fails with 并失败了

$ svnadmin dump /cygdrive/c/Repositories/Thor > Thor.dmp
svnadmin: Can't open file '\cygdrive\c\Repositories\Thor\format': The system can
not find the path specified.

However the following does work within cygwin 但是以下在cygwin中确实有效

$ svnadmin dump 'C:\Repositories\Thor' > Thor.dmp

Any suggestions as to why it works on in cmd but not in cygwin? 关于为什么它可以在cmd上而不在cygwin中起作用的任何建议? Do I need to fiddle with the /cygdrive mount points? 我是否需要摆弄/ cygdrive挂载点?

Obvious now I think about it. 显而易见,现在我考虑一下。 svnadmin is a windows exe that doesn't understand cygwin paths so only the windows version will work. svnadmin是Windows exe,它不了解cygwin路径,因此仅Windows版本可以使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM