Giter Site home page Giter Site logo

backup's Introduction

backup

Backup Software

Help

$ ./backup --help
Usage: backup [options] arg1 arg2 <task>

Options:
  -h, --help            show this help message and exit
  -f FILE, --file=FILE  write report to FILE
  -q, --quiet           don't print status messages to stdout
  --config=CONFIG       Read configuration options from file.
  --task=TASK           task config file.
  --schedule=SCHEDULE   schedule config file.
  -v, --version         print version number
  -d, --daemon          run as daemon
  --logfile=LOGFILE     logs file.

  arg1:
    arg1: task | schedule

  arg2:
    arg2: list | run

  Debug Options:
    --debug             Print debug information

New Task

[www]
policy=mirror
from=/www/www.example.com/*
to=/tmp/www
exclude=.svn
include=*

[database]
policy=mysql
host=192.168.2.1
port=3306
user=www
password=123456
database=test
compress=gzip
to=/tmp

Run Task

$ ./backup task list
www
htdocs
database

New Schedule

$ ./backup schedule show weekly
www: True
images: False

$ ./backup schedule show monthly
test: True
test1: True
test2: True

Run Schedule

$ backup schedule list
hourly
daily
weekly
monthly

Crontab Schedule

# m h  dom mon dow   command
17 *    * * *   test -x /srv/sbin/backup || ( backup schedule run hourly )
25 6    * * *   test -x /srv/sbin/backup || ( backup schedule run daily )
47 6    * * 7   test -x /srv/sbin/backup || ( backup schedule run weekly )
52 6    1 * *   test -x /srv/sbin/backup || ( backup schedule run monthly )


*/30 * * * * /srv/sbin/backup task run www

backup's People

Contributors

netkiller avatar

Watchers

 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.