GithubHelp home page GithubHelp logo

sanskarpoudel / mongodb-s3-backup-script Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 6 KB

This repository includes a bash script that automates the backup of a MongoDB database and uploads the backups to an Amazon S3 bucket. The script helps you easily create secure and scheduled backups, ensuring the important data in MongoDB is safe and protected.

Shell 100.00%

mongodb-s3-backup-script's Introduction

MongoDB-S3-Backup-Script

Features:

Configurable: The script allows easy configuration of MongoDB connection details (host, port, username, password, SSL settings), local backup directory, S3 bucket details, and AWS credentials for seamless integration with your MongoDB instance and AWS account.

Secure: Sensitive information like MongoDB credentials and AWS access keys are stored in variables and can be easily replaced with placeholders, ensuring that your actual credentials remain protected and never exposed in the repository.

AWS S3 Integration: The script leverages the AWS Command Line Interface (AWS CLI) to upload the MongoDB backups to a designated S3 bucket, providing a secure, scalable, and cost-effective storage solution.

Automated Backup: With this script, you can automate the backup process, reducing the risk of data loss and minimizing manual effort.

Usage:

Replace the placeholder credentials in the script with your actual MongoDB connection details, local backup directory, S3 bucket details, and AWS access keys.

Ensure that you have the MongoDB database and the necessary IAM permissions for the AWS access keys.

Schedule the script execution as per your backup requirements (e.g., using cron jobs on Linux).

Regularly check the repository for updates or improvements and contribute to the project to enhance its functionalities.

Note: This script is designed to be used as a standalone utility for backing up MongoDB databases to AWS S3. It's highly recommended to ensure the security and privacy of your credentials and avoid sharing them publicly in any form.

Remember to adapt the description to match your actual script and any specific features or improvements you might add over time.

mongodb-s3-backup-script's People

Contributors

sanskarpoudel avatar

Stargazers

Sunil Sapkota avatar

Watchers

 avatar

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.