@softistx/mongo-backup 0.0.0-stage → 0.4.2

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.
Files changed (72) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +484 -2
  3. package/dist/backups/key-file.d.ts +30 -0
  4. package/dist/backups/key-file.d.ts.map +1 -0
  5. package/dist/backups/mongo-backups.d.ts +33 -0
  6. package/dist/backups/mongo-backups.d.ts.map +1 -0
  7. package/dist/backups/operations.d.ts +55 -0
  8. package/dist/backups/operations.d.ts.map +1 -0
  9. package/dist/backups/options.d.ts +60 -0
  10. package/dist/backups/options.d.ts.map +1 -0
  11. package/dist/backups/plan.d.ts +20 -0
  12. package/dist/backups/plan.d.ts.map +1 -0
  13. package/dist/chunks/index-j0tptz7w.js +97 -0
  14. package/dist/chunks/index-j0tptz7w.js.map +11 -0
  15. package/dist/cli.d.ts +3 -0
  16. package/dist/cli.d.ts.map +1 -0
  17. package/dist/cli.js +31 -0
  18. package/dist/cli.js.map +10 -0
  19. package/dist/errors.d.ts +43 -0
  20. package/dist/errors.d.ts.map +1 -0
  21. package/dist/format/bson-stream.d.ts +13 -0
  22. package/dist/format/bson-stream.d.ts.map +1 -0
  23. package/dist/format/change.d.ts +61 -0
  24. package/dist/format/change.d.ts.map +1 -0
  25. package/dist/format/document.d.ts +7 -0
  26. package/dist/format/document.d.ts.map +1 -0
  27. package/dist/format/metadata.d.ts +14 -0
  28. package/dist/format/metadata.d.ts.map +1 -0
  29. package/dist/format/names.d.ts +22 -0
  30. package/dist/format/names.d.ts.map +1 -0
  31. package/dist/format/position.d.ts +29 -0
  32. package/dist/format/position.d.ts.map +1 -0
  33. package/dist/index.d.ts +17 -0
  34. package/dist/index.d.ts.map +1 -0
  35. package/dist/index.js +1340 -0
  36. package/dist/index.js.map +32 -0
  37. package/dist/restore/landing.d.ts +26 -0
  38. package/dist/restore/landing.d.ts.map +1 -0
  39. package/dist/restore/options.d.ts +59 -0
  40. package/dist/restore/options.d.ts.map +1 -0
  41. package/dist/restore/restore-collections.d.ts +12 -0
  42. package/dist/restore/restore-collections.d.ts.map +1 -0
  43. package/dist/source/catalog.d.ts +28 -0
  44. package/dist/source/catalog.d.ts.map +1 -0
  45. package/dist/source/changes.d.ts +12 -0
  46. package/dist/source/changes.d.ts.map +1 -0
  47. package/dist/source/collections.d.ts +20 -0
  48. package/dist/source/collections.d.ts.map +1 -0
  49. package/dist/source/events.d.ts +46 -0
  50. package/dist/source/events.d.ts.map +1 -0
  51. package/dist/source/followed.d.ts +13 -0
  52. package/dist/source/followed.d.ts.map +1 -0
  53. package/dist/source/mongo-source.d.ts +24 -0
  54. package/dist/source/mongo-source.d.ts.map +1 -0
  55. package/dist/source/snapshot.d.ts +17 -0
  56. package/dist/source/snapshot.d.ts.map +1 -0
  57. package/dist/target/changes.d.ts +8 -0
  58. package/dist/target/changes.d.ts.map +1 -0
  59. package/dist/target/collection.d.ts +20 -0
  60. package/dist/target/collection.d.ts.map +1 -0
  61. package/dist/target/mongo-target.d.ts +22 -0
  62. package/dist/target/mongo-target.d.ts.map +1 -0
  63. package/docs/README.md +28 -0
  64. package/docs/guide/errors.md +411 -0
  65. package/docs/guide/format.md +179 -0
  66. package/docs/guide/getting-started.md +716 -0
  67. package/docs/guide/incremental.md +323 -0
  68. package/docs/guide/operations.md +237 -0
  69. package/docs/guide/restore.md +684 -0
  70. package/docs/roadmap.md +61 -0
  71. package/docs/troubleshooting.md +1257 -0
  72. package/package.json +70 -5
@@ -0,0 +1,61 @@
1
+ # Roadmap
2
+
3
+ Where `@softistx/mongo-backup` is going. A direction, not a commitment: the
4
+ version an item shipped in is the only number on this page.
5
+
6
+ ## Later
7
+
8
+ - **Granular restore without the full rebuild** — restore a few collections
9
+ by reading only their entries, where today `restoreCollections` rebuilds
10
+ the whole backup, chain included, in a scratch database first.
11
+ - **`$lookup` references renamed in restored views** — a view restored
12
+ beside collections restored under other names follows them in its
13
+ `$lookup` and other pipeline stages too, where today only the collection
14
+ it is defined on is renamed.
15
+ - **Time-series collections** — back up and restore a time-series collection
16
+ with its options, where today it is refused with `UNSUPPORTED`.
17
+ - **Sharded clusters, tested** — the specs run against a replica set only:
18
+ a backup tested across shards, and a restore that puts back how each
19
+ collection is sharded.
20
+ - **Point-in-time restore inside an incremental** — stop applying an
21
+ incremental's changes at a chosen moment, instead of only at the end of a
22
+ backup.
23
+ - **Updates to dotted or numeric field names without post-images** — an
24
+ update naming a field with a dot or a number in it carried in an
25
+ incremental even when the collection does not keep post-images, where
26
+ today it is refused with `UNSUPPORTED`.
27
+
28
+ ## Not planned
29
+
30
+ - **Backing up `system.*` collections** — they belong to the server, not to
31
+ the application: restoring them over another deployment's would corrupt
32
+ it, so they are never read.
33
+ - **Users and roles** — they live in the `admin` database and belong to the
34
+ deployment, not to the database being backed up; manage them with the
35
+ server's own tools or your provisioning.
36
+
37
+ ## Shipped
38
+
39
+ - **Backups with the decisions made** — 0.3.0: `mongoBackups` takes a
40
+ database, a repository and one key file (`nxgt-mongo-backup keygen`), and
41
+ gives `run` — a full backup a week, incrementals in between, a full one
42
+ at once when the oplog no longer reaches the last, each read back with
43
+ the key, then the rotation — `restore` of the newest backup or the one at
44
+ a time, whole or part of it, and `drill`.
45
+ - **Granular restore** — 0.2.0: `restoreCollections` restores some
46
+ collections and views of a backup, chain included, under their own names
47
+ or others, into the same database or another; each whole, or only the
48
+ documents a filter takes (by `_id` or any query), merged into what is
49
+ there with `existing: 'replace' | 'keep'`.
50
+ - **MongoDB as a source and a target for `@softistx/backup`** — 0.1.0, the first
51
+ release: a full backup of every collection read at one cluster time, with
52
+ each collection's options and indexes, its documents as BSON with no
53
+ number changing kind, views with their pipeline, and GridFS buckets;
54
+ incremental and differential backups read from the change stream —
55
+ document writes, updates and deletes, and collections created, modified,
56
+ renamed or dropped, indexes created or dropped, and a database dropped;
57
+ a restore in which each collection lands whole or not at all, into the
58
+ same database or another one, refusing a collection already there unless
59
+ `replace` is set.
60
+
61
+ The full history is in [CHANGELOG.md](../CHANGELOG.md).