Giter VIP home page Giter VIP logo

mongo-s3-backup's Introduction

mongo-s3-backup

ko-fi

Docker image for backup mongodb with s3cmd

Usage

docker run \
	-e MONGO_URI="mongodb://root:root@localhost:27017/db" \
	-e S3_ACCESS_KEY="ACCESS_KEY" \
	-e S3_SECRET_KEY="SECRET_KEY" \
	-e S3_PATH="s3://bucket/backup/" \
	-e S3_HOST_BASE="" \
	-e S3_HOST_BUCKET="" \
	-e S3_WEBSITE_ENDPOINT="" \
	ghcr.io/nitpum/mongo-s3-backup:main

Environment variables

  • MONGO_URI Mongo uri example: mongodb://root:root@localhost:27017/db
  • S3_ACCESS_KEY S3 access key
  • S3_SECRET_KEY S3 secret key
  • S3_PATH S3 path example: s3://bucket/backup/ (with trailing slash)
  • S3_HOST_BASE S3 host base example: s3.amazonaws.com or nyc1.digitaloceanspaces.com
  • S3_HOST_BUCKET S3 host bucket example: %(bucket)s.s3.amazonaws.com or %(bucket)s.fra1.digitaloceanspaces.com
  • S3_WEBSITE_ENDPOINT S3 website endpoint example: http://%(bucket)s.s3-website-% (location)s.amazonaws.com/ orhttp://%(bucket)s.s3-website-%(location)s.digitaloceanspaces.com/

Support

If you think this is useful, please consider support me ;)

ko-fi

License

MIT License

mongo-s3-backup's People

Contributors

nitpum avatar

Watchers

 avatar  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.