GithubHelp home page GithubHelp logo

benhoyt / juju-restore Goto Github PK

View Code? Open in Web Editor NEW

This project forked from juju/juju-restore

0.0 2.0 0.0 238 KB

Restore script for Juju controllers

License: GNU Affero General Public License v3.0

Makefile 0.15% Go 99.85%

juju-restore's Introduction

juju-restore

This is a tool to restore a Juju backup file into a Juju controller. It should be run on the primary controller machine in the MongoDB replica set. All replica set nodes need to be healthy, in PRIMARY or SECONDARY state.

The expected usage is to copy the juju-restore binary and the backup file to the primary controller machine and then run it:

./juju-restore /path/to/backup/file

Username and password will be collected automatically from the machine agent's config file: /var/lib/juju/agents/machine-<n>/agent.conf They can be specified manually with the --username/--password options if needed.

By default, a backup taken from an earlier Juju version can't be restored to prevent downgrading the controller accidentally. If this is needed (to back out an upgrade that's hitting an error of some kind for example) pass the --allow-downgrade option to override the version check. (Restoring a backup from a future version of Juju is still forbidden.)

The other connection options (hostname, port and ssl) have defaults that should be correct unless there is some unusual configuration for this MongoDB instance.

For additional logging, run with --verbose.

Current status

This is in development. At the moment it only supports restoring a backup to the same controller, so it can't be used in a disaster scenario where all the controller machines are lost. It's still experimental at this stage and shouldn't be relied on in production. That said: if you have a staging controller that you can experiment on, and you'd be alright with rebuilding it in the case of catastrophic failure, it would really help us to find bugs if you'd try it out and let the Juju team know.

(We haven't had any controller-destroying failures like that in our testing so far.)

The next piece of work is to support the disaster recovery scenario of restoring a backup into a new controller.

Contacting us

You can post issues here on github, post comments on our forum, or talk to us in #juju on freenode.

juju-restore's People

Contributors

babbageclunk avatar anastasiamac avatar jujubot avatar jameinel avatar

Watchers

James Cloos 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.