svnuacvisualsvn-serversvnadmin

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 i.e.: 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:

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):


Solution

  • 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