backup

command module
v0.0.0-...-2a85c61 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: GPL-2.0 Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Backup tool

Tool used to backup and restore things. Currently only supports RDS and MySQL databases.

Example usage for RDS backup

Run a one-time backup/restore:

./backup -config </path/to/your/config.yaml>

Config file examples you can find in examples directory.

Permissions and setup

Minimal AWS IAM permissions required to perform RDS Snapshot backup

---
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "RDSBackup",
      "Effect": "Allow",
      "Action": [
        "rds:DescribeDBInstances",
        "rds:CopyDBSnapshot",
        "rds:DescribeDBSnapshots",
        "rds:DescribeDBSnapshotAttributes",
        "rds:DeleteDBSnapshot",
        "rds:CreateDBSnapshot",
        "rds:ModifyDBSnapshotAttribute",
        "kms:DescribeKey",
        "kms:CreateGrant"
      ],
      "Resource": "*"
    }
  ]
}

In order to work with MySQL you MUST configure and use login-path

mysql_config_editor set --host=<host> --port=3306 --login-path=<name> --user=<user> --password
<you will be prompted for password>

Basically above command will create credentials file which you can refer to in order to connect to MySQL.

Future plans

Support the following backup sources:

  • Elasticsearch
  • PostgreSQL
  • Redis
  • RabbitMQ ..

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
source

Jump to

Keyboard shortcuts

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