Git Product home page Git Product logo

tarsnap-wrapper's Introduction

backup.py

The convenient tarsnap client wrapper

This script offers a convenient interface to the tarsnap client. It does not replace it, it just makes certain things more convenient.

Workflow

  1. Create a directory somewhere that contains one directory entry for each archive. Each directory entry may be either a symbolic link or a directory. If it is a directory, it may contain files, symbolic links and subdirectories. You can exclude files within a directory from an archive via the .backup.py.rc config file.
  2. From time to time (perhaps via a cronjob), you run backup.py store, which will create new tarsnap archives by appending the current date (yyyy-mm-dd) to each archive name.

Getting started

To get started, just run backup.py store. You will be told off for not having a .backup.py.rc, and one will be created for you. Customize it by setting your directory (the one containing an entry for each archive) and optional exclusions (corresponding to tarsnap --exclude), and you're ready to go.

Other features

Use backup.py view to see at which dates each archive was archived.

If an archive is stored twice in a day, you end up with e.g. foo_2012-03-20 and foo_2012-03-20.1.

Use backup.py list as a convenient way of saying tarsnap --list-archives | sort | grep.

Finally, there's backup.py rename which renames an archive (this operates on the remote archives with their full names, including the date suffix).

tarsnap-wrapper's People

Contributors

c4rlo avatar nrbrook avatar

Watchers

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