juju/juju — pull request #377 by perrito666 (2014-07-23 18:41:04+00:00)
Title: Added Restore as a function translated to Go

I think that there is much room to add unit testing here so suggestions are very welcome especially in that side
Restore, formerly a mix of go and bash was rewritten
completely in Go.
Restore function will take a backup and:
* Replace the existing mongo db with backed up one.
* Replace config files.
* Re-create mongo's replicaSet with the new server
* Change the state server address in all agents