GithubHelp home page GithubHelp logo

tgharold / abu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from naturesorganics/abu

0.0 2.0 0.0 296 KB

Attic Backup wrapper script for nightly backups

License: GNU General Public License v2.0

Makefile 2.08% Shell 97.92%

abu's Introduction

abu

Attic backup wrapper script for regular backups. Attic is a deduplicating backup program, supporting compression and encryption.

Motivation

Attic is an awesome backup utility; however it is only the backup tool. This script wraps attic into a simple to use function that can be run regularly to maintain an ongoing backup repository, including pruning of old backups.

Abu is a double-acronym for "Attic BackUp" and "Another Backup Utility"

Installation

Dependencies

Steps

The basic installation process is very basic:

  • Obtain source code: git clone git://github.com/NaturesOrganics/abu.git
  • Change to cloned directory: cd abu
  • Install: make install

Initial Configuration

A configuration file template will be installed to /etc/abu.conf as part of the make install above. This is a template only; you need to adjust to suit your needs.

  • Set the backup destination in the attic_repo option
  • Update the include_paths to make sure you're backing up the right data
  • Optional: configure encryption using the attic_key option

Once you have setup your configuration file, you need to run abu -i to initialize the repository. This is a one-time task.

Configuration Paths

Abu will look for a config file in $HOME/.abu.conf and /etc/abu.conf, using whichever file it finds first.

Scheduling

Once you've got abu installed, configured and your repository initialize, you are probably ready to schedule regular backups. To backup every hour, on the hour, add something like this to your crontab:

0 * * * * /usr/local/sbin/abu

To avoid all your hosts hitting the same backup target at the same time (if your infrastructure is setup that way), use the -d option to set the maximum time to delay the backup. No delay will be introduced unless you pass the -d option to abu.

Introduce a random delay up to 300 seconds (5 minutes):

0 * * * * /usr/local/sbin/abu -d 300

Destination Targets

You can backup directly to a locally mounted file-system (eg, local disk, USB, NFS etc), or backup over SSH to a remote host.

IMPORTANT: When backing up to a remote host using SSH, the remote host must also have attic installed.

Sample ssh_config file if backing up over SSH:

Host attic.example.com
  Hostname mybackupserver.example.com
  Protocol 2
  Port 22
  User attic
  IdentityFile ~/.ssh/id_rsa-attic
  IdentitiesOnly yes
  # prevent display of motd
  LogLevel QUIET

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.