Command Line tool which dump/restore Cloudant database.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
dump.js
package.json
restore.js
settings.js

README.md

Cloudant DB Dump/Restore tool

Overview

  • Command Line tool which dump/restore Cloudant( http://cloudant.com/ ) database into/from local file.

  • This dump tool backup all documents with attachments. And restore tool recreate them into specified database as new one.

Requirement

  • You need Node.js and npm installed to run this tool.

  • You need Cloudant DB instance. You need to prepare your Username & Password which can be accessed to you Cloudant DB instance.

Install & Settings

How to use

Dump

  • Run following command:

    • $ node dump (dbname) (dumpfilename)

      • (dbname): Cloudant database name which to be dumped.

      • (dumpfilename): Local file name which to be created as dumped data.

Restore

  • Run following command:

    • $ node restore (dbname) (dumpfilename)

      • (dbname): Cloudant database name which to be newly created as restored database.

      • (dumpfilename): Local file name which was created in above dump command.

  • If you specify existing database as restore db, that database would be erased first, and restored as newly created one.

Licensing

This code is licensed under MIT.

Copyright

2017 K.Kimura @ Juge.Me all rights reserved.