Giter Site home page Giter Site logo

vss's Introduction

Golang VSS module

Windows API bindings for the Volume Shadow Copy Service in Golang for 32 and 64-bit systems. Enables the user to duplicate entire drives during runtime without any file access issues. The API bindings are accompanied by a simple CLI tool that creates and symlinks Shadow Copies of a given drive.

Build

You can either import the vss API bindings into your project or use the CLI application. The CLI application can be built with the following command:

Cross-compilation is supported for 32 and 64-bit systems. The following commands will build the CLI application for the respective system:

make build_win32 # for 32-bit systems
make build_win64 # for 64-bit systems

Regular build on Windows:

make build

NOTE: When building you need to set the CGO_ENABLED environment variable to 1 and the GOOS environment variable to windows. The GOARCH environment variable should be set to 386 or amd64 depending on the system you are building for.

Usage

./vss -h
usage:  vss [options]
  -D string
        Drive letter to copy (example: C:\)
  -S string
        Path of symlink folder
  -f    Creates snapshots if available shadow storage is low. Warning: Replaces older snapshots.
  -timeout int
        Snapshot creation timeout in seconds (min 180) (default 180)

Docs

Official MS Docs: https://docs.microsoft.com/en-us/windows/win32/api/vss/

vss's People

Contributors

jeromehadorn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

vicodark cuhsat

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.