Coder Social home page Coder Social logo

rsync-push-backup's Introduction

This is a very simple rsync backup script, very much inspired by rsnapshot,
but with very few dependencies (just a bash and rsync) and backups are pushed
to a server rather than pulled in.
Incremental snapshots are rotated in hourly, daily, weekly and monthly intervals.

To use, put the backup script in ~/bin
Configuration must be put in ~/.backup/config and regular rsync includes/excludes in
~/.backup/exclude

I run this with the following crontab entries:
@reboot $HOME/bin/backup > $HOME/.backup/log 2>&1
49 * * * * $HOME/bin/backup > $HOME/.backup/log 2>&1

The result will look something like this:
lrwxrwxrwx  1 miklo miklo   10 2011-12-13 20:11 daily.0 -> ./hourly.6
drwxr-xr-x 18 miklo miklo 4096 2011-12-12 19:49 daily.1
drwxr-xr-x 18 miklo miklo 4096 2011-12-11 20:50 daily.2
drwxr-xr-x 18 miklo miklo 4096 2011-12-10 11:49 daily.3
drwxr-xr-x 18 miklo miklo 4096 2011-12-07 21:49 daily.4
drwxr-xr-x 18 miklo miklo 4096 2011-12-07 20:49 daily.5
drwxr-xr-x 18 miklo miklo 4096 2011-12-06 21:49 daily.6
drwxr-xr-x 18 miklo miklo 4096 2011-12-13 21:49 daily.7
drwxr-xr-x 18 miklo miklo 4096 2011-12-13 21:49 hourly.0
drwxr-xr-x 18 miklo miklo 4096 2011-12-13 21:49 hourly.1
drwxr-xr-x 18 miklo miklo 4096 2011-12-13 20:49 hourly.2
drwxr-xr-x 18 miklo miklo 4096 2011-12-13 20:11 hourly.3
drwxr-xr-x 18 miklo miklo 4096 2011-12-12 23:49 hourly.4
drwxr-xr-x 18 miklo miklo 4096 2011-12-12 22:49 hourly.5
drwxr-xr-x 18 miklo miklo 4096 2011-12-12 21:49 hourly.6
lrwxrwxrwx  1 miklo miklo   10 2011-12-13 21:49 monthly.0 -> ./weekly.4
lrwxrwxrwx  1 miklo miklo    9 2011-12-11 18:49 weekly.0 -> ./daily.7

rsync-push-backup's People

Contributors

mikaellanger avatar

Watchers

James Cloos avatar Alastair Irvine 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.