0.2.0 • Published 12 years ago
spare v0.2.0
Spare 
Creates a cronjob that takes periodic snapshots of a remote Cloudant / CouchDB instance, using PouchDB.
Install
npm install -g spareIf that doesn't work, try prepending sudo.
Usage
To do a one-off backup of a remote instance, use backup instead:
spare backup -r <remote>To restore a remote based on a local backup, use restore:
spare restore -r <remote> -d <YYYY-MM-DD>The -d argument indicates a backup made on a certain day.
To destroy a local backup of a certain day, use remove:
spare remove -r <remote> -d <YYYY-MM-DD>To run any of these commands on a regular basis, try adding them to your crontab, like so:
crontab -e
# now, in your text editor, add a command like this:
@daily spare backup -r <remote>That will backup the given remote instance every day at midnight.
Testing
npm testLicense
MIT, yo.