GithubHelp home page GithubHelp logo

tbolender / multilevel-backup Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 48 KB

Simplifies the management of a multi-level backup structure with rsnapshot especially for not always-on devices.

License: GNU General Public License v3.0

Python 100.00%

multilevel-backup's Introduction

multilevel-backup

Build Status Coverage Status

Simplifies the management of a multilevel backup structure with rsnapshot especially for not always-on devices. Since rsnapshot takes only care about the actual backup process, the handling and timing of multiple backup level is left to the user. For simple setups, this issue can be easily solved with cron jobs, but notably with not always-on devices the manual management can easily result in irreversible mistakes.

What does it do?

Multilevel-backup handles all calls to rsnapshot, the only thing needed is a valid rsnapshot config file. At every invocation, it takes care about performing

  • Only one backup a day
  • Higher backup level as needed

This way, you never have to think about when to call a higher level backup just because you missed a backup.

Important: Current setup limitation

At the moment only a backup setup with the intervals daily, weekly and monthly is supported. So your rsnapshot.conf file should contain something like this:

retain		daily	7   # Will be performed after 1 day difference
retain		weekly	4   # Will be performed after 7 days difference
retain		monthly	3   # Will be performed after 28 days difference

The interval count can differ, multilevel-backup will parse them. All difference days are referring to date difference, so if a daily backup took place on 05.11.2015 20:00, a second one will be performed on 06.11.2015 15:00, although the actual difference is less than 24 hours.

Requirements

Multilevel-backup has no special requirements, it just needs:

  • Python >= 3.3
  • Functional rsnapshot installation

Installation

Currently, multilevel-backup is not available on PyPi. To get it, clone it with

$ git clone https://github.com/itiboi/multilevel-backup.git

and install it with

$ python3 ./setup.py install

Usage

To perform a backup, just call

$ multilevel-backup -c path/to/rsnapshot/config

and relax.

If you want to execute backups automatically, just create a cron job with this call to invoke it daily (or different, just as you setup requires) and multilevel-backup cares about the rest.

To do a dry run, just add -d to the call. It prints all calls that would be invoked.

Help? Want feature?

If you encounter any problems, do not hesitate to create an issue. If you want to help, just fork. Any help is wanted!

License

This project is published under the terms of GPLv3. For more information see LICENSE.txt

multilevel-backup's People

Contributors

tbolender 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.