Code Monkey home page Code Monkey logo

lsn-dbackup's Introduction

lsn-dbackup

Disk-based backup using hard links to reduce vault size. This script is based on the strategy explained here: http://www.mikerubel.org/computers/rsync_snapshots/

usage:
  dbackup {target} {bank} [options] [rsync-options]
where:
  {target}                That which is to be backed up
  {bank}                  The root of where the backups will go
options:
  -y|--non-interactive    Answers yes to all prompts
  -l|--log                Append log messages to a local file
  -v|--verbose            Increase the verbosity of informational messages
  -r|--resume             Resume (or re-run) the last backup
  --                      Stops local option processing
rsync-options:
  Additional options passed to /usr/bin/rsync. These options are already enabled:
    --archive
    --numeric-ids
    --hard-links
    --safe-links
notes:
  * thank you: http://www.mikerubel.org/computers/rsync_snapshots/
  * rysnc-2.5.6 or later is required (as we use --link-dest)
  * output format: {bank}/example.com/path_to_directory/20100225.001
  * use full paths ([email protected]:/home/user/dir instead of
    [email protected]:dir so that the output path is unique per user.
  * options must be separate, i.e., "-r -y", not "-ry"
  * local directory backups use the domain name returned by hostname
  * not all version of rsync support '--log-file' which is used for
    the -l|--log option.  if you have this support, the log file is
    found at: {bank}/example.com/path_to_directory/.log
examples:
  # Local backup
  dbackup /home/my/Documents /var/backup
  # Pull files from example.com without prompting to continue
  dbackup example.com:/var/www /var/backup -y
  # Pass an excludes list to rsync
  dbackup example.com:/var/www /var/backup --exclude-from ./excludes
exit:
  0         Success
  1         Syntax or usage error
  2 - 35    See rsync
  256       Another backup is running the proposed job

lsn-dbackup's People

Contributors

ryangies avatar ryan-gies-agilysys 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.