New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

backpocket

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backpocket

Lost your files? Check your backpocket. A simpler backup/snapshotting tool using rsync and pax/cp.

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
15
increased by275%
Maintainers
1
Weekly downloads
 
Created
Source

backpocket

lost your files? check your backpocket : >

simple secure backup/snapshotting over ssh using rsync and pax

Dependencies

  • node.js http://nodejs.org/download/
  • rsync http://rsync.samba.org/
  • pax http://en.wikipedia.org/wiki/Pax_(Unix) or cp (gnu flavour)

Features

  • Very simple directory structure
  • 'latest' directory contains latest backup
  • each incremental backup generates a new snapshot folder named with the following convention: 'yyyy-mm-dd hh-mm'
  • snapshots make use of hard linking to save space - unmodified files can be snapshotted unlimited times without consuming more space
  • rsync only transfers modified files

Installation

npm install backpocket -g

Examples

//backup from local to local
backpocket ./important/ ./backups/  

//backup from remote to local (pull)
backpocket pull user@someipaddress:/home/user/important/ ./backups/  

//backup from local to remote (push)
backpocket push ./important/ user@someipaddress:/home/user/backups/

Options

  • --cp [1]: use cp instead of pax. this runs on the destination machine. osx ships with pax and it's cp command doesn't support hard links, so if the dest is osx use pax, but if the dest is linux cp is more likely to be there already

  • --idkey [path]: optional path to ssh identity key if you want to specify an alternative to the default on your filesystem

  • --ignore [path]: path to file containing rules for ignoring files (as per rsync docs), default is:

.git
.DS_Store
*.pyc

License

Copyright (c) 2012 Alan Clarke
Licensed under the MIT license.

FAQs

Package last updated on 21 Aug 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc