Backup mongodb and transfer the backup data to a remote storage at the cron-time syntax specified in the .env file.
- Currently only sftp protocol is supported
- Only full backups are supported for now
- Clone the repo and then run:
cd /path/to/mongoBackup
npm install
- open .env file in your editor of choice
- Fill out fields according to the description in front of each item
- Use pm2 to run the script and save it to run after reboots and at startup.
- run the following commands to run at startup
pm2 start dist/index.js
pm2 startup
pm2 save
- Backup databases partially
- Restore backups
- Compatibility with other protocols for transferring backups