jeansibelius / mongodb-cron-backups

Tool to create MongoDB backups using CRON for scheduling.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MongoDB Atlas backups

Tool to create MongoDB backups from your MongoDB Atlas database through commandline allowing CRON scheduling.

Installation

  1. Clone the repository to a location of your choosing.
  2. Make sure the script file is executable (chmod +x /path/to/script)
  3. Create a symlink in a folder included in your PATH (e.g. bin) for easing running of the script:
    1. ln -s <PATH_TO_SCRIPT> /home/$USER/bin/mongobackup
  4. Copy the example_config to a file called config (keeping it in the same folder with the script) and edit your MongoDB Atlas details in. Be careful not to commit your private details to any repository.

Requirements

How to run

To see all the available options, run the script in terminal with the mongobackup help argument to see options.

Basic usage:

  • After setting up your config file, you can just run mongobackup create to have the tool create a DB dump in $USER/MONGODB_DUMP.
  • To see available commands, run mongobackup help.

About

Tool to create MongoDB backups using CRON for scheduling.

License:GNU General Public License v3.0


Languages

Language:Shell 100.0%