auto-backup-dir

1.0.1 • Public • Published

auto-backup-dir

A utility for backup the contents of one local directory into another and monitoring further changes.

Installation

npm install -g auto-backup-dir

Usage

auto-backup [backupDir] [--ignore regexp]

Example:

auto-backup ~/my-dir ~/my-dir-backup

If you do not supply a backupDir then it will default to ./.backup.

If you need to ignore certain files in the directory you can pass an ignore expression.

auto-backup ~/my-dir ~/my-dir-backup --ignore *.js

The above would ignore all .js files in the source directory.

Once the script is running it will make an initial backup and then begin watching the source directory for changes and back those up as well when they occur.

Readme

Keywords

none

Package Sidebar

Install

npm i auto-backup-dir

Weekly Downloads

0

Version

1.0.1

License

ISC

Last publish

Collaborators

  • chevex