开发者社区> 镜像站> NPM> s3-snapshot
s3-snapshot
>
Last updated a year ago by emilbayes .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install s3-snapshot 
SYNC missed versions from official npm registry.

s3-snapshot

Usage

var S3Snapshot = require('s3-snapshot')

API

const snap = S3Snapshot(directory, s3path, s3)

Create new instance that will snapshot directory using a s3-storage instance

snap.exists(cb)

Check if a snapshot exists

snap.download(cb)

Download a snapshot

snap.rollback(cb)

Rollback to a previous version of a snapshot. cb(null, true) if a previous version exists and cb(null, false) otherwise.

You have to redownload it afterwards

snap.snapshot(cb)

Make a new snapshot. Resets any previous rollback.

Install

npm install s3-snapshot

License

ISC

Current Tags

  • 1.0.1                                ...           latest (a year ago)

1 Versions

  • 1.0.1                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (2)
Dependents (0)
None