Modify the config-part within backup.js
and restore.js
to match your configuration, then run:
node backup.js
To backup all documents to a JSON file and
node restore.js
To put the documents back from the JSON file to the database.
Little script to backup all documents from a bucket to a JSON file and restore it to another server/bucket.
Modify the config-part within backup.js
and restore.js
to match your configuration, then run:
node backup.js
To backup all documents to a JSON file and
node restore.js
To put the documents back from the JSON file to the database.
Little script to backup all documents from a bucket to a JSON file and restore it to another server/bucket.