auto-backup-dir
v1.0.1
Published
auto-backup-dir ===============
Downloads
7
Readme
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.