Giter Site home page Giter Site logo

rbackup's Introduction

A simple backup script

This is a simple script I use, to backup and synchronize certain direcotries on my machines. The problem was, that I wanted my Documents and other directories to be present on three different machines, all holding the same content. I use rsync to push those folders to my server and pulling them the same way on other machines. This script is merely a wrapper around rsync, allowing to achieve this in a even simpler manner.

Installguide

./install

This will place the script and two symlinks in /bin, and a example configuration file in /etc/rbackup.conf.

Configuration

After installation, you can find the config file /etc/rbackup.conf, which you should copy to ~/.config/backup.conf and edit. Each line of the file is one backup strategy, consisting of a name, the directory to backup, the remote host address and the remote directory, where the backup will be put. Example:

# NAME            BACK_THIS_UP            REMOTE_URL    WHERE_TO_PUT_IT
documents /home/exampleuser/Documents/ exampleuser@host backups/

The backup target musst be specified as full path. The remote url musst be smth, rsync understands, so, another folder on the local machine or a mounted drive is also possible. The remote location can be relative to the home dir of the user in the url.

Usage

After configuration, execute the following, to back the directory up:

push NAME

Where NAME is specified in the config file. The following pulls the backup to its original location:

pull NAME

All rsync command line arguments can specified. In addition, see --help for additional arguments.

rbackup's People

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.