Giter VIP home page Giter VIP logo

dexcommongobackup's Introduction

DexcomMongoBackup

This is a Discord Bot I created to handle daily backups of my MongoDB for my Nightscout site located at https://dexcom.stelth2000inc.com. Every night at 11:59pm, the bot pulls a backup of from mLab, compresses it using 7zip, and then uploads it to my Amazon S3. I have my Amazon S3 set to only keep a week's worth of backups at any given time.

If you like to use this bot yourself:

  1. Rename in the config folder .env.exmaple to .env
  2. Open the file and modify
    a. BOT_TOKEN: Your Discord bot token
    b. BOT_OWNER_ID: Your Discord owner Id
    c. MONGO_HOST: Your mblab host address
    d. MONGO_USERNAME: Your mlab database username
    e. MONGO_PASSWORD: Your mlab database password
    f. MONGO_PORT: The port your mongo instance is running on
    g. MONGO_DB: Your mongo database name
    h. MONGO_API_KEY: Your mlab API key
    i. AWS_REGION: Amazon S3 region name
    j. AWS_S3_BUCKET: Amazon S3 bucket to upload to
    k. AWS_ACCESS_KEY_ID: Amazon S3 Access Key
    l. AWS_SECRET_ACCESS_KEY: Amazon S3 Secret Access Key

dexcommongobackup's People

Contributors

dependabot[bot] avatar dustin-lennon avatar snyk-bot avatar

Watchers

 avatar  avatar

dexcommongobackup's Issues

Update README

Update README to be more informative about the bot, setup, and it's operations.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.