Giter Club home page Giter Club logo

mbackup's Introduction

README

[Description]
mbakcup is backup tool supposed to run via crontab everyday.
mb is a script to update the backup and cp current backup to external device.

Both of them use rsync to transfer your files and support a highly
customizable backup file list.

[Install]
1. get the following files ready:
/usr/local/bin/mbackup       # main script for cron
~/bin/mb                     # manual backup
~/bin/ubl                    # manual updated backup list
~/.mbackup/backuplists/*     # backup lists
~/.mbackup/config            # mbackup config file

see also [backup list format].

2. setup cron job using /etc/crontab
00 20   *     *   *   root    /usr/local/bin/mbackup
45 19   *     *   *   sylecn  /home/sylecn/bin/ubl >/dev/null

If you prefer using crontab for each user, use crontab -e for root and user.

[Config]
TODO mb and mbackup should report error if mbakcup is not configed correctly.
     for example, missing filelist
~/.mbackup/config
-----------------
#default target dir for local backups
targetdir="/backup"

~/.mbackup/backuplists/*
------------------------
#there is an init version containing commented examples

put all files you need to backup there.
predefined lists you may use are:
user.public
user.publicconfigs
user.private
excl.default

read the README file in that dir for more infomation.

TODO ubl will read all user.* as backup list
     ubl will read all excl.* as exclude list

[test your install]

keep the backup list modest when you are testing the setup.

1. manual backup
   run mb from console.

2. cron backup
   change the run time to let the cron job run.
   check the log in /var/log/mbackup.log to make sure every is OK.
   then change the run time back.

[finishing step]
add your backup lists file to your backup list.
add all files you want to backup in your backup lists.

[backup list format]
see ~/.mbackup/backuplists/README

mbackup's People

Contributors

sylecn avatar

Stargazers

 avatar

Watchers

 avatar  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.