@cloudant/couchbackup 2.5.3-SNAPSHOT.43 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGES.md +4 -0
- package/README.md +2 -2
- package/includes/shallowbackup.js +2 -2
- package/package.json +4 -4
package/CHANGES.md
CHANGED
package/README.md
CHANGED
|
@@ -35,7 +35,7 @@ npm install -g @cloudant/couchbackup
|
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
### Requirements
|
|
38
|
-
* The minimum required Node.js version is
|
|
38
|
+
* The minimum required Node.js version is 10.
|
|
39
39
|
* The minimum required CouchDB version is 2.0.0.
|
|
40
40
|
|
|
41
41
|
### Snapshots
|
|
@@ -204,7 +204,7 @@ This tool can be used to script the backup of your databases. Move the backup an
|
|
|
204
204
|
* `COUCH_URL` - the URL of the CouchDB/Cloudant server e.g. `http://127.0.0.1:5984`
|
|
205
205
|
* `COUCH_DATABASE` - the name of the database to act upon e.g. `mydb` (default `test`)
|
|
206
206
|
* `COUCH_PARALLELISM` - the number of HTTP requests to perform in parallel when restoring a backup e.g. `10` (Default `5`)
|
|
207
|
-
* `COUCH_BUFFER_SIZE` - the number of documents fetched and restored at once e.g. `100` (default `500`)
|
|
207
|
+
* `COUCH_BUFFER_SIZE` - the number of documents fetched and restored at once e.g. `100` (default `500`). When using CouchBackup with [Cloudant on Transaction Engine](https://www.ibm.com/cloud/blog/announcements/ibm-cloudant-on-transaction-engine) `COUCH_BUFFER_SIZE` must be less than `2000` to avoid bad request errors.
|
|
208
208
|
* `COUCH_REQUEST_TIMEOUT` - the number of milliseconds to wait for a respose to a HTTP request before retrying the request e.g. `10000` (Default `120000`)
|
|
209
209
|
* `COUCH_LOG` - the file to store logging information during backup
|
|
210
210
|
* `COUCH_RESUME` - if `true`, resumes a previous backup from its last known position
|
|
@@ -29,14 +29,14 @@ module.exports = function(db, options) {
|
|
|
29
29
|
function(callback) {
|
|
30
30
|
// Note, include_docs: true is set automatically when using the
|
|
31
31
|
// fetch function.
|
|
32
|
-
var opts = { limit: options.bufferSize };
|
|
32
|
+
var opts = { limit: options.bufferSize, include_docs: true };
|
|
33
33
|
|
|
34
34
|
// To avoid double fetching a document solely for the purposes of getting
|
|
35
35
|
// the next ID to use as a startkey for the next page we instead use the
|
|
36
36
|
// last ID of the current page and append the lowest unicode sort
|
|
37
37
|
// character.
|
|
38
38
|
if (startKey) opts.startkey = `${startKey}\0`;
|
|
39
|
-
db.
|
|
39
|
+
db.list(opts, function(err, body) {
|
|
40
40
|
if (err) {
|
|
41
41
|
err = error.convertResponseError(err);
|
|
42
42
|
ee.emit('error', err);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudant/couchbackup",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"description": "CouchBackup - command-line backup utility for Cloudant/CouchDB",
|
|
5
5
|
"homepage": "https://github.com/cloudant/couchbackup",
|
|
6
6
|
"repository": "https://github.com/cloudant/couchbackup.git",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
},
|
|
18
18
|
"license": "Apache-2.0",
|
|
19
19
|
"engines": {
|
|
20
|
-
"node": ">=
|
|
20
|
+
"node": ">=10"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@cloudant/cloudant": "^4.
|
|
23
|
+
"@cloudant/cloudant": "^4.3.0",
|
|
24
24
|
"async": "^3.1.0",
|
|
25
25
|
"commander": "^5.0.0",
|
|
26
26
|
"debug": "~4.1.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"eslint-plugin-standard": "^4.0.0",
|
|
44
44
|
"http-proxy": "^1.16.2",
|
|
45
45
|
"jsdoc": "^3.6.3",
|
|
46
|
-
"mocha": "^
|
|
46
|
+
"mocha": "^8.1.3",
|
|
47
47
|
"nock": "^12.0.0",
|
|
48
48
|
"rewire": "^5.0.0",
|
|
49
49
|
"tail": "^2.0.0",
|