简体   繁体   中英

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

results in 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. I also tried adding myself to all VisualSVN groups that were created by VisualSVN (and re-login)), but no joy.

Additionally I tried running things like:

runas /user:administrator svnadmin dump...

which - after asking for administrator password - results in 'Access is Denied' as well. (But ie: runas /user:administrator cmd works fine.)

I also tried setting svnadmin.exe to run as administrator, but again, no joy.

Security permissions on the repository folder are as follows:

  • Administrator: Full Control
  • CallMeBob: Full Control
  • System: Full Control
  • Network Service (which is the account running VSVN server): everything ticked apart from Full Control
  • VisualSVN Server Admins: everything ticked apart from Full Control

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
  • adding Network Service user to VisualSVN groups (which are: VisualSVN Replication Partners, VisualSVN Repository Supervisors, VisualSVN Server Admins)

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 dump C:\path\to\repo > backup.svndump

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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