简体   繁体   English

VisualSVN svnadmin 转储导致“访问被拒绝”

[英]VisualSVN svnadmin dump results in 'Access is denied'

I would like to backup my code and be able to access it from desktop or laptop or any other device at any time.我想备份我的代码并能够随时从台式机或笔记本电脑或任何其他设备访问它。 So I decided to add a post commit hook to make a simple dump of my repository into a directory, which is synced between all my devices.所以我决定添加一个提交后挂钩,将我的存储库简单地转储到一个目录中,该目录在我的所有设备之间同步。

I did some testing and pretty much in each scenario I try to run a simple我做了一些测试,几乎在每个场景中我都尝试运行一个简单的

svnadmin dump c:\\path\\to\\repo > c:\\path\\to\\bkp svnadmin 转储 c:\\path\\to\\repo > c:\\path\\to\\bkp

results in Access is Denied .结果Access is Denied The only way I was able to create a dump was to open a command prompt by right clicking and running it as administrator and then issuing the dump command.我能够创建转储的唯一方法是通过右键单击并以管理员身份运行它然后发出转储命令来打开命令提示符。

Obviously the standard account I use (CallMeBob) is in Administrators group.显然,我使用的标准帐户 (CallMeBob) 位于管理员组中。 I also tried adding myself to all VisualSVN groups that were created by VisualSVN (and re-login)), but no joy.我还尝试将自己添加到由 VisualSVN 创建的所有 VisualSVN 组(并重新登录),但没有任何乐趣。

Additionally I tried running things like:此外,我尝试运行以下内容:

runas /user:administrator svnadmin dump... runas /user:administrator svnadmin 转储...

which - after asking for administrator password - results in 'Access is Denied' as well.这 - 在要求管理员密码后 - 也会导致“访问被拒绝”。 (But ie: runas /user:administrator cmd works fine.) (但即: runas /user:administrator cmd工作正常。)

I also tried setting svnadmin.exe to run as administrator, but again, no joy.我还尝试将 svnadmin.exe 设置为以管理员身份运行,但同样没有乐趣。

Security permissions on the repository folder are as follows:存储库文件夹的安全权限如下:

  • Administrator: Full Control管理员:完全控制
  • CallMeBob: Full Control CallMeBob:完全控制
  • System: Full Control系统:完全控制
  • Network Service (which is the account running VSVN server): everything ticked apart from Full Control网络服务(这是运行 VSVN 服务器的帐户):除了完全控制之外,一切都被打勾
  • VisualSVN Server Admins: everything ticked apart from Full Control VisualSVN 服务器管理员:一切都与完全控制分开

Clearly there is some sort of permission problem somewhere, but after spending some sick amount of time on this I still don't understand where... any ideas?显然某处存在某种许可问题,但是在花了一些病态的时间之后,我仍然不明白在哪里......有什么想法吗?

EDIT(s):编辑:

List of additional checks (as per comments):附加检查列表(根据评论):

  • disabling UAC on CallMeBob account在 CallMeBob 帐户上禁用 UAC
  • adding Network Service user to VisualSVN groups (which are: VisualSVN Replication Partners, VisualSVN Repository Supervisors, VisualSVN Server Admins)将网络服务用户添加到 VisualSVN 组(即:VisualSVN 复制合作伙伴、VisualSVN 存储库主管、VisualSVN 服务器管理员)

I was facing the same issue and found this question which has not been answered yet.我面临同样的问题,发现这个问题尚未得到解答。

Your command is missing the name of the dump file!您的命令缺少转储文件的名称! Add any name for the dump file and it will work like a charm.为转储文件添加任何名称,它会像魅力一样工作。

svnadmin dump c:\\path\\to\\repo > c:\\path\\to\\bkp\\backup.svndump svnadmin 转储 c:\\path\\to\\repo > c:\\path\\to\\bkp\\backup.svndump

我遇到了同样的问题,并通过从命令窗口导航到我想要保存备份的目录,然后输入一个没有路径的文件名来让它工作。

svnadmin dump C:\path\to\repo > backup.svndump

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

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