Coder Social home page Coder Social logo

snapdisk's Introduction

snapdisk

snapdisk is a user-mode utility that allows creating snapshots of block-devices in pieced chunks with deduplication. Effectively, it can be used to create backups of block devices. It is currently under development and may not have all functionality implemented fully.

Usage

snapdisk has multiple facilities, as seen in the help page:

Syntax: ./snapdisk.py [command] [options]

Available commands:
    snapshot           Create a snapshot of a block device
    serve              Start a snapshot server that serves an image
    genkey             Generates a server and client key for use with TLS

Options vary from command to command. To receive further info, type
    ./snapdisk.py [command] --help

The easiest is to create a local device block snapshot:

$ ./snapdisk.py snapshot /dev/sda1 backup-image

But when snapdisk is also installed at a peer, it can also be tunneled over ssh:

$ ./snapdisk.py snapshot ssh://[email protected]//dev/sda1 backup-image

Alternatively, you can start a server on the peer, e.g., over plain IP:

$ ./snapdisk.py serve -e ip://192.168.1.100 /dev/sdb5

And then, on the client side, create the backup by connecting to it:

$ ./snapdisk.py snapshot ip://192.168.1.100 backup-image-remote

Lastly, you can create TLS keypairs for client and server side:

$ ./snapdisk.py genkey server.json client.json

And then use the TLS server/client functionality. On the server using the server key:

$ ./snapdisk.py serve tls://192.168.1.100/server.json /dev/sdb9

And on the client using the client key:

$ ./snapdisk.py snapshot tls://192.168.1.100/client.json backup-image-tls

All individual commands have their own help pages and offer many options, consult them to learn more.

License

GNU GPL-3.

snapdisk's People

Contributors

johndoe31415 avatar

Watchers

 avatar  avatar  avatar

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.