copy-database

by Makaira GmbH

Helm chartv1.3.0App 1.0.0

Copy a MySQL or MariaDB database from one server to another

About this chart

copy-database

This chart provides a Job to copy a database from one MySQL/MariaDB instance to another.

Configuration example

copy-database:
  source:
    host: "source.example.com"
    user: "source_user"
    password: "source_password"
    database: "source_database"
    ssl: # If you use an encrypted connection, add these settings.
      serverCA: |-
        Content of the server CA certificate. It is extremely important that this is encrypted.
      clientCert: |-
        Content of the client certificate. It is extremely important that this is encrypted.
      clientKey: |-
        Content of the client key. It is extremely important that this is encrypted.

  destination:
    host: "destination.example.com"
    user: "destination_user"
    password: "destination_password"
    database: "destination_database"
    ssl:
      serverCA: |-
        Content of the server CA certificate. It is extremely important that this is encrypted.
      clientCert: |-
        Content of the client certificate. It is extremely important that this is encrypted.
      clientKey: |-
        Content of the client key. It is extremely important that this is encrypted.

Deploy copy-database with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has copy-database on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcopy-database is pinned at v1.3.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply