Skip to content

Backup mongoDB and transfer the backup to a remote storage

Notifications You must be signed in to change notification settings

mohammadsh0/mongoBackup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What does mongoBackup do?

Backup mongodb and transfer the backup data to a remote storage at the cron-time syntax specified in the .env file.

Limitations

  • Currently only sftp protocol is supported
  • Only full backups are supported for now

How to install?

  1. Clone the repo and then run:
cd /path/to/mongoBackup
npm install
  1. open .env file in your editor of choice
  2. Fill out fields according to the description in front of each item
  3. Use pm2 to run the script and save it to run after reboots and at startup.
  4. run the following commands to run at startup
pm2 start dist/index.js
pm2 startup
pm2 save

Future development

  • Backup databases partially
  • Restore backups
  • Compatibility with other protocols for transferring backups

About

Backup mongoDB and transfer the backup to a remote storage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published