{"id":27389,"library":"shadowcopy","title":"shadowcopy","description":"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.","status":"active","version":"0.0.4","language":"python","source_language":"en","source_url":"https://pypi.org/project/shadowcopy/","tags":["windows","vss","shadow-copy","backup"],"install":[{"cmd":"pip install shadowcopy","lang":"bash","label":"Install"}],"dependencies":[],"imports":[{"note":"Common mistake: importing the module without the function leads to AttributeError.","wrong":"import shadowcopy","symbol":"create_shadow_copy","correct":"from shadowcopy import create_shadow_copy"}],"quickstart":{"code":"from shadowcopy import create_shadow_copy\n\n# Create a shadow copy of a directory\nresult = create_shadow_copy('C:\\\\path\\\\to\\\\folder')\nprint(result)  # e.g., '\\\\?\\GLOBALROOT\\Device\\HarddiskVolumeShadowCopy1\\'","lang":"python","description":"Creates a VSS snapshot of a directory on Windows and returns the shadow copy path."},"warnings":[{"fix":"Use only on Windows, or wrap the call with platform checks.","message":"shadowcopy only works on Windows with VSS enabled. It will raise an error on Linux/macOS.","severity":"gotcha","affected_versions":"all"},{"fix":"Copy or process the files immediately within a try-finally block.","message":"The shadow copy path is temporary and may be deleted automatically. Access it quickly after creation.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.0.4':26 'backup':34 'copi':9,21,33 'creat':7 'current':24 'directori':14 'file':12 'infrequ':27 'librari':5 'python':4 'releas':28 'servic':22 'shadow':8,20,32 'shadow-copi':31 'shadowcopi':1 'simpl':3 'snapshot':10 'use':17 'version':25 'volum':19 'vss':23,30 'window':16,29","created_at":"2026-05-01T17:46:01.360821+00:00","updated_at":"2026-05-01T17:46:01.360821+00:00","problems":{"verify_error":"/tmp/tmpaybkqxy6/venv/lib/python3.12/site-packages/wmi.py:32: SyntaxWarning: invalid escape sequence '\\_'\n  `GetObjectText\\_` method being called, which usually produces\n/tmp/tmpaybkqxy6/venv/lib/python3.12/site-packages/wmi.py:854: SyntaxWarning: invalid escape sequence '\\_'\n  \"\"\"This is the equiva"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/csm10495/shadowcopy","docs":"https://csm10495.github.io/shadowcopy","changelog":null,"pypi":"https://pypi.org/project/shadowcopy/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops","data"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"install_fail","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-09","install_tag":null}}