Giter VIP home page Giter VIP logo

mongodb-backup-manager's People

Contributors

bmro avatar

Watchers

 avatar

mongodb-backup-manager's Issues

send backup to aws s3

  1. Accept an optional flag to specify an AWS S3 Bucket and AWS credentials to upload the backup file.
  2. If an AWS S3 Bucket is specified, upload the backup file to the bucket using the provided AWS credentials.

core restore options

  1. Accept an optional backup file name as an argument (default value mongodb_archive.gz).
  2. Accept an optional flag to disable decompression during the restore process.
  3. Accept an optional flag to drop the collection if it already exists.
  4. If the drop collection flag is set, set it to drop each collection before restoring them.

send backup to sftp

  1. Accept an optional flag to specify an SFTP URI and SFTP credentials to upload the backup file.
  2. If an SFTP URI is specified, upload the backup file to the URI using the provided SFTP credentials.

core backup

  1. Create a function to handle the backup action.
  2. Accept the database target URI as a required argument.
  3. Connect to the database using the provided target URI.
  4. Save it as an archive (default name: mongodb_archive)
  5. Create a database backup and save it with the provided backup file name.
  6. Compress the backup file if compression is not disabled.

get restore file from aws s3

  1. Accept an optional flag to specify an AWS S3 Bucket and AWS credentials to download the backup file.
  2. If an AWS S3 Bucket is specified, download the backup file from the bucket using the provided AWS credentials.

core backup options

  1. Accept an optional backup file name as an argument with a default value of the current date and time UTC (YYYYMMDD_hhmmss).
    2. Example of the file name: 20231231_235959_mongodb.gz
  2. Accept an optional flag to disable compression during the backup process.

Design Mongo DB data management tool

App features:

The app should be available in two forms:

  • CLI (Command Line Interface) for Windows, Linux, and MacOS.
  • API version available in Docker.
    The app should accept input in the form of an action and corresponding options.

Available Actions:

  1. backup: The backup action should support the following options:
  • database target URI
  • [backup file name] (optional)
  • [disable compression] (optional)
  • [AWS S3 Bucket, AWS Credentials] (optional)
  • [SFTP URI, SFTP Credentials] (optional)
  1. restore: The restore action should support the following options:
  • database target URI
  • [backup file name] (optional)
  • [disable decompression] (optional)
  • [drop collection if exist] (optional)
  1. delete: The delete action should support the following options:
  • database target URI
  • [create a backup before deletion] (optional)
  1. clone: The clone action should support the following options:
  • database target URI
  • (database source URI OR database backup file name)

These actions and options should be clearly defined and explained in the documentation for the app, along with any necessary syntax and examples.

core restore

  1. Create a function to handle the restore action.
  2. Accept the database target URI as a required argument.
  3. Connect to the database using the provided target URI.
  4. Find the backup file with the provided backup file name (the default name is mongodb_archive.gz).
  5. Decompress the backup file (GZIP) if decompression is not disabled (it should be enabled by default).
  6. Restore the database from the backup file.

backup action

  • Create a function to handle the backup action.
  • Accept the database target URI as a required argument.
  • Accept an optional backup file name as an argument with a default value of the current date and time.
  • Accept an optional flag to disable compression during the backup process.
  • Accept an optional flag to specify an AWS S3 Bucket and AWS credentials to upload the backup file.
  • Accept an optional flag to specify an SFTP URI and SFTP credentials to upload the backup file.
  • Connect to the database using the provided target URI.
  • Create a backup of the database and save it with the provided backup file name.
  • Compress the backup file if compression is not disabled.
  • If an AWS S3 Bucket is specified, upload the backup file to the bucket using the provided AWS credentials.
  • If an SFTP URI is specified, upload the backup file to the URI using the provided SFTP credentials.

get restore file from sftp

  1. Accept an optional flag to specify an SFTP URI and SFTP credentials to download the backup file.
  2. If an SFTP URI is specified, download the backup file from the URI using the provided SFTP credentials.
    1. The SFTP URI should have an SFTP endpoint and the server path to the file.

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.