Coder Social home page Coder Social logo

bacify's Introduction

Bacify

Rust

Description

The name is short for Backup&Verify.

Bacify looks for files that

  • should be in the backup (according to the source file birth time) but are not
  • and files that have the same modification timestamp as in the backup but have different content.

Usage

Only the fantastic restic is supported at the moment!

Set the RESTIC_REPOSITORY and RESTIC_PASSWORD environment variables and run cargo run.

Examples

NOTE: Assuming you cloned Bacify into $HOME/dev/bacify

Backup snapshot with an absolute path

Create backup and verify the data in the repository:

$ cd $HOME/dev/bacify
$ export RESTIC_REPOSITORY="$HOME/tmp/restic-repo"
$ export RESTIC_PASSWORD="foo"
$ restic init
$ restic backup $HOME/dev/bacify

Verify the backup against the local files:

$ cargo run

Backup snapshot with a relative path

Create backup and verify the data in the repository:

$ cd $HOME/dev/bacify
$ export RESTIC_REPOSITORY="$HOME/tmp/restic-repo"
$ export RESTIC_PASSWORD="foo"
$ restic init
$ restic backup .

Verify the backup against the local files:

$ cargo run -- --relative-path

--relative-path is needed as the snapshot metadata lists absolute paths, but the files are actually restored without the leading path components.

Excludes

Warning

Read this is you get a lot of errors about missing files!
At the moment there is only support for a hard-coded, single exclude file named $HOME/.backup_exclude.
Bacify does NOT (yet) support the full exclude file syntax, only prefixes are compared!

Maximum backup age

You can use --max-age to make bacify return an error if the backup is too old. Human readable format, e.g. 3d or 2w, should work fine.

License

MIT

bacify's People

Contributors

marius avatar

Stargazers

Johannes Plunien avatar  avatar

Watchers

 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.