Giter Site home page Giter Site logo

backup_machine's Introduction

backup_machine

A simple python script that can be run as a cron job to backup important files and directories to a different filesystem (such as a different disk in the computer). The number of copies to store can be set. An e-mail is sent when the copy is completed.

The details of the backup are specified in an inputs file (see the sample example.ini). This follows the INI format. In particular, root directories are given a heading in [...] and the list of subdirectories and files under the root to be copied are listed with the files = and dirs = options. E.g.:

[/home/user]
files = a, t, this, that,
   next, 
   another

dirs = bin/,
       development/,
       stuff/, otherstuff/

The global information for the backup is specified in the [main] section as:

[main]

root = /raid/backup/auto/
prefix = my-backup-

nstore = 3

email_sender = [email protected]
email_receiver = [email protected]

Here nstore is the number of simultaneous backups to keep around. Older ones will be deleted.

backup_machine's People

Contributors

zingale avatar

Watchers

 avatar  avatar

Forkers

ttorpin

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.