Code Monkey home page Code Monkey logo

backpocket's Introduction

backpocket

js-standard-style

lost your files? check your backpocket : >

create incremental timemachine style backups locally or over ssh

usage

npm install backpocket -g
cd ~/backups
backpocket user@server:/my/important/files

/*
 *  Creates the following in ~/backups
 *  - latest
 *  - 2016-02-16_14-46-54
*/

// subsequent calls
backpocket bob@server:/my/important/files
backpocket bob@server:/my/important/files

/*
 *  Creates more incremental archives
 *  - latest
 *  - 2016-02-16_14-46-54
 *  - 2016-02-16_14-47-03
 *  - 2016-02-16_14-47-41
*/

backpocket --help

/*
 *  Usage: backpocket [options] <target>
 *
 *  e.g. "backpocket ../files" or "backpocket -p 30days -f YYYY-MM-DD_hh-mm-ss user@server:files"
 *
 *  create incremental backups of target in the current working directory
 *
 *  Options:
 *
 *    -h, --help            output usage information
 *    -V, --version         output the version number
 *    -v, --verbose         verbose output
 *    -f, --format          format for archive directory (default is "YYYY-MM-DD_HH-mm-ss")
 *    -p, --purge n[units]  remove backups older than... "2seconds", "2minutes", "2hours", "2days", "2weeks"
 */

features

  • works over ssh
  • only transfers missing or modified files
  • uses hard links i.e. if nothing changed, incremental backup takes up zero additional disk space
  • unit tested

dependencies

backpocket's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

seagullua

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.