You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Avoid data loss in case of node failures or human errors.
Writing scripts for database backups is fairly simple. You can use Mongoexport to export collections as JSON or CSV, or Mongodump to dump the whole database.
You may use node-cron or node-schedule npm libraries for running cron jobs to take timely database backups.
You may create a folder named scripts in the root folder and add your script to that. That script will be run independent of this server to avoid performance issues.
The text was updated successfully, but these errors were encountered:
Avoid data loss in case of node failures or human errors.
Writing scripts for database backups is fairly simple. You can use Mongoexport to export collections as JSON or CSV, or Mongodump to dump the whole database.
You may use node-cron or node-schedule npm libraries for running cron jobs to take timely database backups.
You may create a folder named scripts in the root folder and add your script to that. That script will be run independent of this server to avoid performance issues.
The text was updated successfully, but these errors were encountered: