I'd like to create a volume shadow copy (vshadow 2.2) from within Cygwin over ssh:
$ ./vshadow.exe -p -nw C:
(...)
- Setting the VSS context to: 0x00000019
Creating shadow set {a5e0883e-9485-4243-8276-1ac7c569ab6a} ...
- Adding volume \\?\Volume{218a908d-1e3f-11df-a215-806e6f6e6963}\ [C:\] to the shadow set...
Creating the shadow (DoSnapshotSet) ...
ERROR: COM call "m_pVssObject->DoSnapshotSet(&pAsync)" failed.
- Returned HRESULT = 0x80070005
- Error text: Access is denied.
I guess that's because the local Windows user cyg_server
that Cygwin runs as does not have permission of some kind.
Things I've tried:
- the advanced options under the security tab when I right-click C: in My Computer, but I don't see anything that seems to be relevant
- It says to rerun with
/tracing
. I don't see much that's helpful around the failure point - I went to the directory in Windows where I'm creating the exposed mount point, and gave
cyg_server
Full Control. No change. - created the VSSAccessControl key as described here. No change.
- made
cyg_server
a member of Domain Admins. No change. vshadow without the
-nw
switch, and got this instead:$ ./vshadow.exe -p C: (...)
- Setting the VSS context to: 0x00000009 (Gathering writer metadata...) (Waiting for the asynchronous operation to finish...) Error during the last asynchronous operation.
- Returned HRESULT = 0x80042318
- Error text: VSS_E_WRITER_INFRASTRUCTURE
How can I make a snapshot over ssh with public key auth?
Update: I found this thread from 2007 mentioning that you can't if you use public key auth. I have verified that if I rename my id_rsa file and use a password login, it works (with or without the -nw
switch.) But I need to use pubkey auth in order to make a backup script. The author doesn't mention why it was that way, but I guess it hasn't been fixed in the last six years...is there a workaround?