dedicated-mysql-restore

command
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

README

dedicated-mysql-restore

Compile:

go install dedicated-mysql-restore

How to run:

$ ./restore --help

Usage:
  restore [OPTIONS]

Application Options:
      --encryption-key= Key used to decrypt backup artifact
      --mysql-username= Username to authenticate to mysql instance
      --mysql-password= Password to authenticate to mysql instance

Help Options:
  -h, --help            Show this help message

Examples (done inside mysql VM):

## Create a restore directory
$ mkdir /var/vcap/store/restore-artifact/

## Stop all services
$ monit stop all

## Compress and encrypte data directory
$ tar -c -C /var/vcap/store/mysql/data/ . | \
    gpg --batch -c --cipher-algo AES256 --passphrase=SECRET > \
    /var/vcap/store/restore-artifact/mysql-backup.tar.gpg

## Decrypt your encrypted backup
gpg -d --passphrase=secret < /var/vcap/store/restore-artifact/mysql-backup.tar.gpg | tar -tv


## Restore from your decrypted backup
$ ./restore --encryption-key=SECRET --mysql-username=ADMIN --mysql-password=PASSWORD

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
executablefakes
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL