A minimal node backup server for mongoDB. It takes your database, zips it, and saves it locally or on Amazon Web Services.
$ git clone https://github.com/associatedemployers/shore.git
$ npm install
$ node index.js
- In shore/config/options.json enter what you would like the backup named, the name of the database, where it is located, and the cronjob pattern for when you want the task ran.
Check out the pattern for setting your date here.
- In shore/tasks/task.js we have it configured to name the file whatever name you specified in options.json plus a MomentJS formatted date plus .zip. If you would like the name to be different, here is where you would change it.
MIT