Skip to main content

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.v1
    • roles/compute.networkAdmin
    • roles/compute.securityAdmin

Authentication

SnapManager uses Google Cloud Application Default Credentials for authentication. You can set this up in one of two ways:

  1. Service Account Key File (Recommended for production):

    export GOOGLE_APPLICATION_CREDENTIALS="/path/to/service-account-key.json"
    
  2. 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:

  1. Create a new disk from the VSS snapshot
  2. Create a temporary VM to make the disk bootable
  3. Run necessary Windows boot configuration commands
  4. Create a final VM with the bootable disk
  5. 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)

Source distribution for snapmanager 0.3.0
File Size Uploaded
snapmanager-0.3.0.tar.gz 18.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for snapmanager 0.3.0
File Interpreter ABI Platform
snapmanager-0.3.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.9

2 release files

0.2.8

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page