Giter Site home page Giter Site logo

snapkup-docs's Introduction

โ“ What is snapkup?

Snapkup is a simple backup tool that takes snapshots of your filesystem (or the parts that you'll decide), storing them efficiently and conveniently.

I wrote it because I wanted a single point to backup all the files in my linux system, and synchronize them to a cloud sync server. I wanted it to be incremental, of course, and to provide full deduplication; to compress the files and to encrypt them for privacy, as I also keep a copy of the backup on an USB disk.

I like its features. Please let me know if you'd like something else!

Basic workflow

The basic flow to accomplish this can be summed up as:

  • You initialize an empty directory that will store the backups;
  • You register one or more backup roots: these are directory or files that will be snapshotted;
  • You take one (and then more) snapshots. Snapkup lists all the filesystem tree for those roots, taking a copy of the contents;
  • You can later restore the situation of the roots at any given snapshot;
  • Of course, it's possible to list roots and snapshots and delete any of them, and perform all the other admin ops.

Design choices

  • Built with Go(lang). You get one statically linked binary, and that's all you need;
  • Files are deduplicated: only one copy of a file is stored, across the filesystem and all the snapshots;
  • Everything stored on-disk is encrypted, using XChaCha20Poly1305;
  • Checksums, using authenticated 128-bit SipHash, are used to perform deduplication and integrity;
  • By default, everything is compressed using zstd -19;
    • Incompressible files are stored as not compressed;
  • Small files can be merged in "agglos", to reduce the number of files and make it more sync-friendly (e.g. for Dropbox);
  • Snapkup favors features and code readability over speed. It's not slow, though!
  • All paths are converted to absolute paths, for consistency;
  • Cross-platform portability of backup archives is not a priority, though it should reasonably work.

Future plans

  • Ability to produce all outputs as JSON (maybe), for better script-ability;
  • Ability to retrieve files from external filesystems, via SSH;
  • Ability to back up data that come from the execution of a command (e.g. crontab -l);
  • FUSE-mount a snapshot.

snapkup-docs's People

Contributors

proofrock avatar gitbook-bot avatar

Watchers

James Cloos 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.