Giter Site home page Giter Site logo

flashback's Introduction

flashback

flashback is a python script that leverages fabric to quickly roll-back configuration changes gone awry. Thanks to fabric, it parallelizes well, and provides quick recovery for replacing smallish text files with previous versions, assuming sshd continues to work and the authenticated user on the remote server has appropriate sudo permissions.

Documentation

For the full CLI reference including usage examples, please see full project documentation.

Prerequisites

To get up and running, the following must be installed:

  • python 2.7.x
  • fabric and its dependencies
  • jinja2

Installation

  • Create a virtual environment and activate
  • Clone this git repository
  • pip install .

Optionally for sphinx document generation, pip install the following

  • sphinx
  • pygments
  • sphinx_rtd_theme
  • sphinx-argparse

Example CLI Usage

Create a backup of /etc/rsyslog.conf for all hosts listed in hosts.txt

flashback archive -f hosts.txt -F /etc/rsyslog.conf --parallel-workers=5

Recover the archived version of /etc/rsyslog.conf from earlier in the day and perform a service restart

flashback -f hosts.txt -F /etc/rsyslog.conf --parallel-workers=5 \
--post-recover-command="sudo service rsyslog restart"

License

Apache License, version 2.0. Please see LICENSE

flashback's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

bhodges

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.