Registry / devops / shadowcopy

shadowcopy

JSON →
library0.0.4pypypiunverified

A simple Python library for creating shadow copies (snapshots) of files or directories on Windows using the Volume Shadow Copy Service (VSS). Current version 0.0.4, infrequent releases.

pip install shadowcopy
INSTALL
IMPORT
SIG · SHADOWCOPY
S
shadowcopy
devopspythonv0.0.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

create_shadow_copy
from shadowcopy import create_shadow_copy
import shadowcopy
Common mistake: importing the module without the function leads to AttributeError.

Creates a VSS snapshot of a directory on Windows and returns the shadow copy path.

from shadowcopy import create_shadow_copy # Create a shadow copy of a directory result = create_shadow_copy('C:\\path\\to\\folder') print(result) # e.g., '\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1\'
Debug
Known issues
gotchashadowcopy only works on Windows with VSS enabled. It will raise an error on Linux/macOS.
fix
Use only on Windows, or wrap the call with platform checks.
affects: all
gotchaThe shadow copy path is temporary and may be deleted automatically. Access it quickly after creation.
fix
Copy or process the files immediately within a try-finally block.
affects: all
Upgrade
Version history
0.0.4latest on PyPI · released Jul 8, 2023
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
OpenAI (training)
1
Resources
shadowcopy — pip install shadowcopy · libregistry