Questions tagged [volume-shadow-service]

Volume Shadow Service (VSS), also called Volume Shadow Copy refers to a volume shapshot service built in to Microsoft Windows Operating Systems from XP or greater. Questions concerning the API should use this tag; you may also consider tagging your question Windows and the language of your choice.

Filter by
Sorted by
Tagged with
0 votes
0 answers
165 views

Restore shadow copies from CLI

I found this guide to create snapshots in command line https://www.agix.com.au/create-list-and-delete-windows-shadow-copy-vss-on-windows-10/ But is there a way to restore them from CLI too? Thanks
0 votes
0 answers
57 views

Accessing VSS Snapshot

I have a .net6 application. I need to create a VSS Snapshot and then be able to access the snapshot programmatically and copy files out of it. I explored AlphaVSS but did not have the best of luck. It ...
  • 2,011
0 votes
0 answers
66 views

Can you use Volume Shadow Copy Service Snapshots on removable flash drives?

Hi I have a quick question - can you use Volume Shadow Copy Service snapshots on removable flash drives? I am making a data backup program that uses Volume Shadow Copy Service to back up drives. When ...
0 votes
1 answer
53 views

QDir Won't Show Symbolically Linked Shadow Copy Directory Contents Using EntryList()

Hi I have a very unique situation hopefully the solution is simple... I am writing a backup program that uses Volume Shadow Copy Service to freeze the state of files to be backed up. I cannot traverse ...
5 votes
2 answers
2k views

Volume Shadow Copy (VSS) - Catastrophic failure

I have an issue with Volume Shadow Copies (VSS). This issue started a few days ago. I’ve tried MANY things from Google but cannot find a solution. What’s frustrating (and surprising) is that even ...
1 vote
1 answer
548 views

Why does viewing VSS cause OLE error 0x80041014?

I am trying to write some digital forensics software in python, which means I need a way to access volume shadow copies on windows. I am following this article from SANS https://www.sans.org/blog/...
0 votes
0 answers
607 views

How to mount drive to a volume shadow copy by DefineDosDevice?

I have created a volume shadow copy(eg \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy19) and I want to access the volume shadow copy by a device name(eg x:) in order to backup my system. I have tried ...
0 votes
2 answers
449 views

How do you create a Writable VSS Snapshot?

This implies you can create a writable vss snapshot: Usability limit for Volume Shadow Copy Service (VSS) in Windows But how do you do it? I've played around with things, I can get a FAT/FAT32 ...
  • 503
0 votes
0 answers
116 views

VssExpressWriter fails to add a folder into restore point

I'm trying to use VSS Express Writer to include one of my folders in the restore point when it is conducted. Although the code seem to runs without any errors I don't get the expected result and the ...
  • 857
0 votes
1 answer
74 views

What is distinction between a C++ and COM interface for IVssExamineWriterMetadata?

According to https://learn.microsoft.com/en-us/windows/desktop/api/vsbackup/nl-vsbackup-ivssexaminewritermetadata: The IVssExamineWriterMetadata interface is a C++ (not COM) interface that allows a ...
  • 5,905
0 votes
2 answers
528 views

how does physical disk read work with volume shadow for ntfs?

my goal is to make a backup program reading a physical disk (with NTFS partitions) while using VSS for data consistency. i use windows api's functions CreateFile with '\.\PhysicalDriveN' as described ...
-1 votes
1 answer
365 views

What options are there for accessing volume shadow copy service snapshot files in a program?

I am creating a VSS snapshot in a program using C++ and the VSS API. According to here you can use the FindFirstFile/FindNextFile functions or create a symbolic link to the volume and go through the ...
2 votes
1 answer
997 views

Cannot access Volume Shadow Copy until it is accessed via GUI [powershell]

I'm writing a simple powershell script that would automate offsite backup from Windows file server to another remote Windows server. Files might be in use, so in order for Robocopy to sucessfully copy ...
0 votes
0 answers
2k views

System Drives to Disk Cloning

I am trying to find a way to clone an active Windows system disk to another disk without forcing the user to take the disk offline, like Clonezilla requires. I am thinking of Microsoft Volume Shadow ...
0 votes
1 answer
627 views

How to delete Volume Shadow Copies using C#?

I need to delete one or all shadow copies in Windows Server 2003. How I can do it using C#? For example, I can write "vssadmin delete shadows /all" in cmd and all will be fine, but me need to do it ...
0 votes
0 answers
78 views

ExposeLocally failed with COM error

I am following this article to create a snapshot using Windows VSS service and further taking it a step ahead by mounting it. After searching I found a method ExposeSnapshot()to which I passed the ...
  • 120
0 votes
1 answer
70 views

VSS backups cause custom windows service to fail

I've built custom windows services in vb.net that run on a timer and look for files in a remote directory to process. On a few servers, they fail without any error at the same exact time, around 10:...
1 vote
3 answers
314 views

Backup large number of files without enumerating

Is there a way in .NET to backup a directory containing multiple sub directories each containing potentially 10,000 or more files of roughly 100kb-500kb in size without enumerating? The use case here ...
  • 1,665
5 votes
1 answer
6k views

Windows 10 how to create shadow storage on another drive without vssadmin create

I want to create shadow storage for one drive on another using Windows 10. For server windows editions, there is: vssadmin add shadowstorage /for=<ForVolumeSpec> /on=<OnVolumeSpec> [/...
0 votes
1 answer
598 views

Unable to Access Volume Shadow Copy Service Snapshot Volume

Hi I am having trouble getting the volume shadow copy service to work for my program written in C++ with QT. The snapshot is created successfully however I cannot access it either through my program ...
1 vote
1 answer
269 views

java.nio.file.Path error with VSS (Volume Shadow Copy) paths

Using VSS, I've created a volume snapshot and can successfully access files on it: C:\> type \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1\Users\Eric\Desktop\test.txt test text 1/2 test text 2/2 ...
  • 11.3k
1 vote
1 answer
217 views

Need to use Volume Shadow Copy Service in 32/64 bit QT C++ program

I have a couple questions about using Volume Shadow Copy Service for my QT C++ program. I read that in order to use VSS you must be running native 32/64 bit no WOW64 supported. So this means I need ...
1 vote
0 answers
67 views

Taking VSS snapshot as regular user

I want to read exclusive-opened files on Windows on a user-specified volume. The established way to do this is to take a VSS snapshot. Taking a VSS snapshot generally requires administrative ...
  • 329
1 vote
0 answers
26 views

while trying to add smb volume to the snapshot set in windows server 2012 R2

In windows server 2012 R2, While trying to add the smb volume to the snapshot set, i get an error 0x8004230f after calling the AddToSnapshotSet() function. I have searched the error and found some ...
0 votes
0 answers
64 views

How to write a Vss provider code that copy block changes

I want to write a Vss provider code that save the block changes to a volume Where can I find information about this? The example I have found on Internet performed only full copy of all data when a ...
1 vote
0 answers
35 views

Reading the cow Shadow storage directly

How to read only the changed blocks from the shadow storage as illustrated here? http://macriumsoftware.files.wordpress.com/2012/11/reading_data_back.png I want to know if someone can share a sample ...
0 votes
1 answer
62 views

With what API do you perform a read-consistent file operation in OS X, analogous to Windows Volume Shadow Service

We're writing a C++/Objective C app, runnable on OSX from versions 10.7 to present (10.11). Under windows, there is the concept of a shadow file, which allows you read a file as it exists at a ...
1 vote
0 answers
150 views

Want example code for reading the VSS snapshot journal

Is there a way to read the VSS snapshot area directly on Windows? Assume that you have created a VSS snapshot; and want to read the snapshot to figure out: - which block was copied (the block ...
0 votes
1 answer
830 views

Batch file: Automate VSS Snapshot checks

I'm looking for a way to create a VSS snapshot for all drives on a server, to ensure that the functionality is working as expected - after which i would need to delete the snapshots - so far I've been ...
1 vote
0 answers
162 views

How to implement bare metal recovery for windows server os in c++

I tried to implement bare metal recovery for windows os machine. I thought of implementing it using VolumeShadowService (VSS). Till now I am able to take backup of entire system using vss and ...
1 vote
0 answers
781 views

Getting Error code: -2146368511 [0x80110401] on executing Sample VSS Hardware provider setup

Both the solutions mentioned in "VSS Hardware provider" are not helpful. I executed following instructions to install VssSampleProvider Setup (refered from https://code.msdn.microsoft.com/...
  • 11
-2 votes
1 answer
727 views

c# dll import entry point with colons / scope

Looking to dll import from vssapi.dll, Looking at the GetSnapshotDeviceName function, and DLL export viewer gives me: protected: long __cdecl CVssWriter::GetSnapshotDeviceName(unsigned short const * ...
  • 433
2 votes
0 answers
56 views

VSS Hardware Provider Get_TargetLuns copy serial number in m_rgbIdentifier

In Get_Targetluns, i cloned the ZFS volume and shared with targetGroups and get the serial number of the disk My serial number is in the form of 69 71 6e 2e 32 30 31 30 2d 30 38 2e 6f 72 67 2e ...
  • 776
1 vote
1 answer
1k views

Using wmi to get the VSS shadow copy's dos path

vssadmin list shadows show the dos path of every volume copy, in the following form: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy4 Is there a way to do this using wmi? I'ved looked through ...
  • 19.2k
0 votes
1 answer
140 views

Reading a file without causing access denial to other processes

I've been thinking about writing a small specialized backup app, similar to newly introduced file history in Windows 8. The basic idea is to scan some directories every N hours for changed files and ...
0 votes
1 answer
88 views

What is uuid of IVssBackupComponentsEx4?

What is UUID of IVssBackupComponentsEx4? I've looked all through MSDN site and did not find anything, also this documentation is not so good about VSS related components. Regards.
1 vote
0 answers
405 views

Use Volume Shadow Copy from Delphi with WMI Class Win32_ShadowCopy

Does anyone have any pointers to using the WMI class Win32_Shadowcopy to create a temporary ("Backup") shanshot of a volume, in Delphi? I have seen a generated unit (http://delphi-wmi-class-generator....
0 votes
1 answer
270 views

VShadow.exe for Vista

I need the VShadow or its equivalent for Vista (Business). All the VShadows I am trying are giving errors. I need to use it from Command Prompt. The procedure entry point ...
1 vote
2 answers
512 views

VSS Hardware provider

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: ...
  • 116
0 votes
1 answer
403 views

Why there is no VSS for sqlite?

The SQL Server implementation by Microsoft contains the VSS writer and other components with it to help it take backups without making a considerable impacy on performance. But there is no such VSS ...
  • 21
2 votes
2 answers
2k views

How to copy a file while it's being written as fast as possible?

TL/DR: I have two machines: A and B. I make a testing program, to test the medium (interface) between them - I check for errors when copying file from A to B and then from B to A, but I must do it the ...
  • 8,349
0 votes
1 answer
728 views

Need Volume Shadow Copy API to freeze Exchange Writers

I have implement my own application (probably using Volume Shadow Copy) for backing up the Exchange 2010 server. I have found following schema: Backup Sequence Diagram But I cannot find any ...
2 votes
2 answers
4k views

Shadow copy error using Alphavss

iI am trying to use the sample code provided on the site alphavss. I am trying to include the class VssBackup.cs and then use this in my program. Most likely I am missing a dll reference but I am not ...
  • 3,194
1 vote
1 answer
316 views

How to programmatically read items from a VSS backup drive?

I use VSS to backup to a backup drive. I'd like attach that drive on another machine and list all the backups on it and then list all the items within a particular backup. I know you can do it at the ...
  • 3,537
2 votes
1 answer
612 views

How to implement GetTargetLUNs in vss Hardware provider?

I am implementing VSS Hardware provider for ZFS based iSCSI Target. We have implemented AreLunSupported, precommitsnapshot and commitsnapshot etc functions and till this point it is working fine. But ...
20 votes
4 answers
39k views

Accessing Volume Shadow Copy (VSS) Snapshots from powershell

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:...
  • 32.2k
2 votes
1 answer
307 views

Skip GetTagetLuns, LoacteLuns and FillinLunInfo in VSS HW Provider

I am writing VSS Hardware provider and am able to create snapshot.Accordingly when traced with tracing tools I notice that upto PostCommitSnapshot is all perfect .After PostCommit Snapshot for The ...
  • 66
8 votes
3 answers
2k views

Consistent backups in python

I'm working on a remote backup solution in python. The server part will run on Unix/Linux because it will use hard links for efficient incremental backups. The client part, however, will have to run ...
  • 667
0 votes
1 answer
2k views

How to backup using backup API's in c++ [closed]

I am writing an application that used to backup some specified file, therefore using the backup API calls i.e CreateFile BackupRead and WriteFile API's. getting errors Access violation reading ...
0 votes
1 answer
2k views

Copy files from VSS

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 ...