Code Monkey home page Code Monkey logo

solr-backup's Introduction

docker-solr-backup

SOLR backup solution for Solr instances running inside docker

Docker Example Build

docker build -t scbd/solr-backup:test .

Docker Example Run

docker run -it  \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v "$(pwd)"/config.json://run/secrets/config.json \
  -e SOLR_CONTAINER_NAME="solr-container-name" \
  scbd/solr-backup:test

Script Help

Docker solr backup

Performs a backup of every solr collection every 6 hours. The script uses Docker API to find a docker solr container and backup all available solr collections
All successful backups are uploaded AWS S3.


ENV variables:
    --S3_BUCKET                    S3 Bucket where the backup will be uploaded    
    --S3_BUCKET_FOLDER             S3 Folder to store the backup under the S3 Bucket    
    --SOLR_URL                     Solr URL    
    --SOLR_CONTAINER_NAME          Solr container name for backup(can be a Regex)    
    --SOLR_CONTAINER_IMAGE         Solr container image for backup(can be a Regex)
    --CONFIG_FILE                  AWS Secrets file eg. {
                                                          awsAccessKeys : {
                                                            global : {
                                                                accessKeyId     :"*******",
                                                                secretAccessKey :"*******"
                                                            }
                                                            
                                                        }  

solr-backup's People

Contributors

blaisefonseca avatar

Watchers

James Cloos avatar Vince Gopez avatar Stephane Bilodeau avatar Frédéric Vogel avatar  avatar  avatar RJH 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.