couchbackup | Cloudant backup and restore library and command-line utility | Continuous Backup library
kandi X-RAY | couchbackup Summary
kandi X-RAY | couchbackup Summary
When you run couchbackup with --mode shallow a simpler backup is performed, only backing up the winning revisions of the database. No revision tokens are saved and any conflicting revisions are ignored. This is a faster, but less complete backup. Shallow backups cannot be resumed because they do not produce a log file. NOTE: Parallellism will not be in effect if --mode shallow is defined.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- validate arguments
- Get a batch of documents from the database .
- Parse command line arguments
- Apply environment variables
- This function processes a buffer of documents and writes to the queue .
- Entry point for .
- Download all documents in the log file .
- Backup a object to an object store .
- Stream changes .
- Parses a backup command .
couchbackup Key Features
couchbackup Examples and Code Snippets
Community Discussions
Trending Discussions on couchbackup
QUESTION
I try to perform a Cloudant backup to IBM COS based on the example code provided for the @cloudant/couchbackup package and receive an error from the dependent Hmac package: "TypeError: Key must be a buffer at new Hmac (crypto.js:117:16)".
I adjusted the sample code to use my specific source (Cloudant) and target (COS) credentials and left the other parts of the sample code mainly unchanged. The result is identical for running it on Ubuntu (on Virtual Box) and on Windows 10. General access to both Cloudant and COS is proven with other test scripts.
My server.js:
...ANSWER
Answered 2019-Feb-13 at 21:11Apparently, the ibm-cos-sdk was not installed properly. After running npm install ibm-cos-sdk
it worked fine. Not sure why const IbmCos = require('ibm-cos-sdk');
is not sufficient. Maybe this is another question to someone knowledgeable of npm (not me certainly).
I also managed to run the same script using the aws-sdk with slight modification of instantiating the client.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install couchbackup
The latest builds of master are published to npm with the snapshot tag. Use the snapshot tag if you want to experiment with an unreleased fix or new function, but please note that snapshot versions are unsupported.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page