Giter Club home page Giter Club logo

s3-backup's Introduction

Fast Backup to S3 AWS

This project can help you to connect backup to everything by adding new service to docker compose file

First of all you need to pass this parameters as ENV variables to your compose file

ENDPOINT_URL = (url of your s3)
BUCKET = 
SERVICE_NAME = (s3 or ec2, s3 is default)
AWS_SECRET_KEY = 
AWS_ACCESS_KEY = 

DB_HOST = 
DB_PORT = 
DB_NAME = 
DB_LOGIN = 
DB_PASSWORD = 
DB_COLLECTION = (only for mongo)
DB_TYPE = (mysql or postgres or mongo)

FILES = first/file/path;second/file/path;first/folder
BACKUP_INTERVAL = (in seconds, backup every X secod from the moment of run)
SPECIFIC_TIME = 03:11 (if it is given the backup interval will be ignored)

BACKUP_NAME_FOR_TG = (name of the backup for telegram message)
TG_BOT_TOKEN = (bot token from telegram for messages)
TG_CHAT_ID = (chat id for messages in TG)

The example of compose file you can see in compose.yaml file

What's important that you can only backup one the databases. For more databases create more services from the same image

If you don't want to clone the project you can easily get the image from dockerhub progerg/backup-s3. For correct working of the image please create also volumes to give one container to communicate with another

I recommend to mount to /home/backup

s3-backup's People

Contributors

progerg avatar

Stargazers

 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.