cloudbackup-prepare

command module
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

README

Binlogic CloudBackup Prepare

License Build Status Coverage Status codebeat badge Go Report Card


CloudBackup is a tool to orchestrate MySQL, MariaDB, MongoDB and PostgreSQL Backups in the Cloud. Each backup is encrypted with a unique key and compressed. In case you need to use any backup in a environment where cloudbackup is not present or for some reason you no longer want to use cloudbackup this project will help you getting the backup ready yo use.

cloudbackup-prepare is a simple binary to decrypt and uncompress backups made with CloudBackup

Installation

  • If you already have go installed
  go get github.com/binlogicinc/cloudbackup-prepare

Usage

Usage of cloudbackup-prepare:

      --agent-version string    Agent version used to take the backup (if empty it's assumed <= 1.2.0)
  -i, --backup-file string      Binlogic CloudBackup file path
  -e, --encryption-key string   Encruption key to decrypt backup file
  -o, --output-file string      Outfile to save backup decrypted and uncompressed
  -v, --version                 Output version information and exit
Example
cloudbackup-prepare  -i tesfiles/mysqldump_sql.z  -e kpySdc2vfHL_4WebUstA29fRFacKis8LZRbLqFFY0HM= -o somefile.sql

NOTE: Since we cant validate encryption key is valid to decrypt each file (otherwise you backup is not safe :( ), we only check key has a valid format. After process is complete, please check that the output file doesn't contain garbage. In that case you are probably using an incorrect key.

where tesfiles/mysqldump_sql.z is the backup file, kpySdc2vfHL_4WebUstA29fRFacKis8LZRbLqFFY0HM= is the key used to encrypt this backup and somefile.sql is where you want to dump decreypted and uncompress backup. Problably is you are processing a MongoDB backup you want to use somefile.json or if you are processing a xtrabackup file like somefile.xbstream but that is up to you.

License

cloudbackup-prepare is distributed under Apache 2.0 License.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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