SnapManager
A tool for managing VSS-enabled snapshots in Google Cloud Platform. Currently supports restoring VSS snapshots and creating bootable VM instances from them.
Prerequisites
- Python 3.8 or higher
- Google Cloud SDK
- Google Cloud Service Account with the following permissions:
roles/compute.instanceAdmin.v1roles/compute.networkAdminroles/compute.securityAdmin
Authentication
SnapManager uses Google Cloud Application Default Credentials for authentication. You can set this up in one of two ways:
-
Service Account Key File (Recommended for production):
export GOOGLE_APPLICATION_CREDENTIALS="/path/to/service-account-key.json"
-
User Credentials (Good for development):
gcloud auth application-default login
Installation
pip install snapmanager
Usage
# Show help
snapmanager restore --help
# Restore a VSS snapshot
snapmanager restore \
--project YOUR_PROJECT_ID \
--zone ZONE \
--vpc-network NETWORK_NAME \
--subnet SUBNET_NAME \
--snapshot SNAPSHOT_NAME
Command Arguments
--project: Google Cloud project ID where the snapshot and new VM will be created--zone: Google Cloud zone where the new VM will be created--vpc-network: VPC network to attach the new VM to--subnet: Subnet within the VPC network for the new VM--snapshot: Name of the VSS-enabled snapshot to restore from--verbose: Show detailed progress information for each step
Example
snapmanager restore \
--project my-project \
--zone europe-west1-b \
--vpc-network default \
--subnet default \
--snapshot my-windows-vss-snapshot
This will:
- Create a new disk from the VSS snapshot
- Create a temporary VM to make the disk bootable
- Run necessary Windows boot configuration commands
- Create a final VM with the bootable disk
- Clean up temporary resources
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for snapmanager 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| snapmanager-0.3.0.tar.gz | 18.7 kB | Without provenance | Details for snapmanager-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| snapmanager-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for snapmanager-0.3.0-py3-none-any.whl |
Total release size: 39.0 kB
Release files / snapmanager-0.3.0.tar.gz
| Download URL | snapmanager-0.3.0.tar.gz |
|---|---|
| Size | 18.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
70d79586f2d40e9751f64cd415fe4b0d94ffd413a04a6e014595f580dfc54abd
|
|
BLAKE2b-256 checksum How to use checksums |
982ce299a0ab7bed70cfb23b62e2552db44c53ec596990e079f680159b869dd1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.0
|
Release files / snapmanager-0.3.0-py3-none-any.whl
| Download URL | snapmanager-0.3.0-py3-none-any.whl |
|---|---|
| Size | 20.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
57016519e182662e5f751373f0aa1aa70297bbcb4584c06a7c3f57604e12569d
|
|
BLAKE2b-256 checksum How to use checksums |
f7247254cd5438a6cd41ca63a94732ff60e28c4dc81c2e0d607e90913b65369e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.0
|
Security for snapmanager 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.