GithubHelp home page GithubHelp logo

snapper-pacman's Introduction

pacman-snapper

Hooks for creating snapper pre- and post- snapshots before and after pacman transactions

Since the hooks themselves cannot pass information between them, and the post command requires the pre-number, a pair of auxiliary scripts are used and a small temp file created under /var/tmp to keep track of it.

Instructions

Build and install the package, or copy the files over manually

  • snapper-*.hook go to /usr/share/libalpm/hooks
  • snapper-*.sh go to /usr/local/bin (or wherever you prefer, just make sure to change it on the hook files)

The hooks are set to fail in case of error taking the snapshot. If that's not what you want, then either comment the AbortFail directive on the hook files or, if you're feeling particularly lazy, just set the last line to exit 0 on the pre- helper script.

BEWARE that doing the above, however, might just kill you with the very weapon you're trying to use to defend yourself. You've been warned.

Rights

You have the right to get screwed by this, but you DON'T have the right to complain to me about it. No warranties, safeguards or anything else provided.

Licensing

These scripts are licensed under public domain. Feel free to do whatever you want with them (because putting something like this under whatever license is not only useless, but waaay to much work for a dozen lines of obvious code).

snapper-pacman's People

Contributors

gutoandreollo avatar

Stargazers

 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.