volume-shadow-service

Volume Shadow Copy in C++

痞子三分冷 提交于 2020-01-23 08:10:07
问题 I'm developing an application which will need to copy files that are locked. I intend on using the Volume Shadow Copy service in Windows XP+ but I'm running into a problem with the implementation. I am currently getting E_ACCESSDENIED when attempting calling CreateVssBackupComponents() which I believe is down to not having backup privileges so I am adjusting the process privilege token to include SE_BACKUP_NAME which succeeds but I still get the error. My code so far (error checking removed

Volume Shadow Copy in C++

徘徊边缘 提交于 2020-01-23 08:09:27
问题 I'm developing an application which will need to copy files that are locked. I intend on using the Volume Shadow Copy service in Windows XP+ but I'm running into a problem with the implementation. I am currently getting E_ACCESSDENIED when attempting calling CreateVssBackupComponents() which I believe is down to not having backup privileges so I am adjusting the process privilege token to include SE_BACKUP_NAME which succeeds but I still get the error. My code so far (error checking removed

List of well known VSS Writer GUIDs

左心房为你撑大大i 提交于 2020-01-13 06:02:51
问题 Is there a consolidated list of GUIDs for well known VSS writers available somewhere? At least the Microsoft ones like System State, Exchange, SQL, Sharepoint etc. 回答1: Well now there is one started here :-) /** Microsot Exchange Writer. */ public static final String EXCHANGE_GUID = $("76FE1AC4-15F7-4BCD-987E-8E1ACB462FB7"); /** MSDE Writer for SQL server 2000 and before. Still works under SQL SVR 2005 but preferred is #SQL_SERVER_GUID */ public static final String SQL_SERVER_2000_GUID = $(

VSS Hardware provider

核能气质少年 提交于 2019-12-24 09:54:26
问题 I've been trying to follow the instructions to install the example VSS hardware provider that comes with the Windows SDK. Unfortunately COM refuses to register the DLL, giving the following output: Unregistering the existing application... - Create the catalog object - Get the Applications collection - Populate... - Search for VssSampleProvider application... - Saving changes... Done. Creating a new COM+ application: - Creating the catalog object - Get the Applications collection - Populate..

Accessing Volume Shadow Copy (VSS) Snapshots from powershell

主宰稳场 提交于 2019-12-17 22:34:04
问题 I am attempting to create and access a Volume Shadow Copy snapshot using the Windows Power Shell in Windows 7. I found that I can create snapshots using the following via a previous superuser question: (Get-WmiObject -list win32_shadowcopy).create("C:\","ClientAccessible") I am unable to find any documentation indicating that it is possible to set a shadow copy to "Exposed" so that it can be mapped to a drive letter using WMI . An article linked in the same question shows a hack using a

Backup Files in use by another Process

ε祈祈猫儿з 提交于 2019-12-11 06:28:09
问题 My application currently uses a third party API that has a bug forcing me to build it in 32bit. Unfortunately this conflicts with Window's Volume Shadow Copy as this apparently must be run in 64bit to work. Are there any alternatives to VSS I can use to safely backup files that are currently being used by another process? 回答1: Depending on your requiremen you can do something as simple as this: FileStream fStream = new FileStream(FileName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);

Copy files from VSS

假如想象 提交于 2019-12-08 11:21:39
问题 I am working on a windows VSS application, I want some help regarding it. After creating snapshot, how can I copy the files or files' blocks(sectors), preferably files' blocks, from volume snapshot using C/C++. Can someone guide me on this or can direct me to any samples or documentation doing the same. Thanks in advance. 回答1: You can access VSS snapshot items using regular functions CreateFile() to open a file ReadFile() or BackupRead() to read/backup its data Only the root path to the items

Why does my Volume Shadow Copy Service requester fail: cannot find CreateVssBackupComponentsInternal

喜欢而已 提交于 2019-12-08 06:11:15
问题 I have implemented a VSS requester, and it links compiles and executes on Windows Server 2008, but does not execute on Windows Server 2003. Since my requester is inside a DLL, my DLL will not load. Using the Dependency Walker, I discovered that my DLL is finding VSSAPI.DLL just fine, but it reports: Error: At least one required implicit or forwarded dependency was not found. Looking at my VSSAPI.DLL, it cannot find CreateVssBackupComponentsInternal , while VSSAPI.DLL exports something

Volume Shadow Copy (VSS) sample in C#?

与世无争的帅哥 提交于 2019-12-05 02:15:02
问题 I've seen the question here, but I'm having difficulty understanding how to implement a system to read existing shadow copies from my system. Can someone provide a short sample of code that lets me browse existing shadow copies using either the MS API or Alpha's? FYI — this is older code and not easily adaptable (or at least not from my perspective) 回答1: Use AlphaVSS. It is a wrapper around the Windows API calls. In particular, the "QuerySnapshots" function will be applicable to you. In order