mirror of
https://github.com/jkaninda/mysql-bkup.git
synced 2025-12-06 21:49:40 +01:00
@@ -18,9 +18,12 @@ ARG BACKUP_TMP_DIR="/tmp/backup"
|
|||||||
ARG TEMPLATES_DIR="/config/templates"
|
ARG TEMPLATES_DIR="/config/templates"
|
||||||
ARG appVersion=""
|
ARG appVersion=""
|
||||||
ENV VERSION=${appVersion}
|
ENV VERSION=${appVersion}
|
||||||
LABEL author="Jonas Kaninda"
|
LABEL org.opencontainers.image.title="mysql-bkup"
|
||||||
LABEL version=${appVersion}
|
LABEL org.opencontainers.image.description="A lightweight MySQL backup and restore tool"
|
||||||
LABEL github="github.com/jkaninda/mysql-bkup"
|
LABEL org.opencontainers.image.licenses="MIT"
|
||||||
|
LABEL org.opencontainers.image.authors="Jonas Kaninda <me@jonaskaninda.com>"
|
||||||
|
LABEL org.opencontainers.image.version=${appVersion}
|
||||||
|
LABEL org.opencontainers.image.source="https://github.com/jkaninda/mysql-bkup"
|
||||||
|
|
||||||
RUN apk --update add --no-cache mysql-client mariadb-connector-c tzdata ca-certificates
|
RUN apk --update add --no-cache mysql-client mariadb-connector-c tzdata ca-certificates
|
||||||
RUN mkdir -p $WORKDIR $BACKUPDIR $TEMPLATES_DIR $BACKUP_TMP_DIR && \
|
RUN mkdir -p $WORKDIR $BACKUPDIR $TEMPLATES_DIR $BACKUP_TMP_DIR && \
|
||||||
|
|||||||
63
README.md
63
README.md
@@ -3,7 +3,7 @@
|
|||||||
**MYSQL-BKUP** is a Docker container image designed to **backup, restore, and migrate MySQL databases**.
|
**MYSQL-BKUP** is a Docker container image designed to **backup, restore, and migrate MySQL databases**.
|
||||||
It supports a variety of storage options and ensures data security through GPG encryption.
|
It supports a variety of storage options and ensures data security through GPG encryption.
|
||||||
|
|
||||||
**MYSQL-BKUP** is designed for seamless deployment on **Docker** and **Kubernetes**, simplifying MySQL backup, restoration, and migration across environments.
|
MYSQL-BKUP is designed for seamless deployment on **Docker** and **Kubernetes**, simplifying MySQL backup, restoration, and migration across environments.
|
||||||
It is a lightweight, multi-architecture solution compatible with **Docker**, **Docker Swarm**, **Kubernetes**, and other container orchestration platforms.
|
It is a lightweight, multi-architecture solution compatible with **Docker**, **Docker Swarm**, **Kubernetes**, and other container orchestration platforms.
|
||||||
|
|
||||||
|
|
||||||
@@ -69,12 +69,6 @@ MYSQL-BKUP has been tested and runs successfully on:
|
|||||||
|
|
||||||
- [PostgreSQL](https://github.com/jkaninda/pg-bkup)
|
- [PostgreSQL](https://github.com/jkaninda/pg-bkup)
|
||||||
|
|
||||||
## Storage:
|
|
||||||
- Local
|
|
||||||
- AWS S3 or any S3 Alternatives for Object Storage
|
|
||||||
- SSH remote storage server
|
|
||||||
- FTP remote storage server
|
|
||||||
- Azure Blob storage
|
|
||||||
|
|
||||||
## Quickstart
|
## Quickstart
|
||||||
|
|
||||||
@@ -204,10 +198,7 @@ spec:
|
|||||||
# Pin the image tag to a specific release version in production.
|
# Pin the image tag to a specific release version in production.
|
||||||
# See available releases: https://github.com/jkaninda/mysql-bkup/releases
|
# See available releases: https://github.com/jkaninda/mysql-bkup/releases
|
||||||
image: jkaninda/mysql-bkup
|
image: jkaninda/mysql-bkup
|
||||||
command:
|
command: ["backup", "-d", "dbname"]
|
||||||
- /bin/sh
|
|
||||||
- -c
|
|
||||||
- backup -d dbname
|
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
memory: "128Mi"
|
memory: "128Mi"
|
||||||
@@ -248,10 +239,7 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: pg-bkup
|
- name: pg-bkup
|
||||||
image: jkaninda/mysql-bkup
|
image: jkaninda/mysql-bkup
|
||||||
command:
|
command: ["backup", "-d", "dbname"]
|
||||||
- /bin/sh
|
|
||||||
- -c
|
|
||||||
- backup -d dbname
|
|
||||||
env:
|
env:
|
||||||
- name: DB_HOST
|
- name: DB_HOST
|
||||||
value: "mysql"
|
value: "mysql"
|
||||||
@@ -270,6 +258,51 @@ spec:
|
|||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
```
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 🚀 Why Use MYSQL-BKUP?
|
||||||
|
|
||||||
|
**MYSQL-BKUP** isn't just another MySQL backup tool, it's a robust, production-ready solution purpose-built for modern DevOps workflows.
|
||||||
|
|
||||||
|
Here’s why developers, sysadmins, and DevOps choose **MYSQL-BKUP**:
|
||||||
|
|
||||||
|
### ✅ All-in-One Backup, Restore & Migration
|
||||||
|
|
||||||
|
Whether you're backing up a single database, restoring critical data, or migrating across environments, MYSQL-BKUP handles it all with a **single, unified CLI** no scripting gymnastics required.
|
||||||
|
|
||||||
|
|
||||||
|
### 🔄 Works Everywhere You Deploy
|
||||||
|
|
||||||
|
Designed to be cloud-native:
|
||||||
|
|
||||||
|
* **Runs seamlessly on Docker, Docker Swarm, and Kubernetes**
|
||||||
|
* Supports **CronJobs** for automated scheduled backups
|
||||||
|
* Compatible with GitOps and CI/CD workflows
|
||||||
|
|
||||||
|
### ☁️ Flexible Storage Integrations
|
||||||
|
|
||||||
|
Store your backups **anywhere**:
|
||||||
|
|
||||||
|
* Local disks
|
||||||
|
* Amazon S3, MinIO, Wasabi, Azure Blob, FTP, SSH
|
||||||
|
|
||||||
|
### 🔒 Enterprise-Grade Security
|
||||||
|
|
||||||
|
* **GPG Encryption**: Protect sensitive data with optional encryption before storing backups locally or in the cloud.
|
||||||
|
* **Secure Storage** Options: Supports S3, Azure Blob, SFTP, and SSH with encrypted transfers, keeping backups safe from unauthorized access.
|
||||||
|
|
||||||
|
### 📬 Instant Notifications
|
||||||
|
|
||||||
|
Stay in the loop with real-time notifications via **Telegram** and **Email**. Know immediately when a backup succeeds—or fails.
|
||||||
|
|
||||||
|
### 🏃♂️ Lightweight and Fast
|
||||||
|
|
||||||
|
Written in **Go**, MYSQL-BKUP is fast, multi-arch compatible (`amd64`, `arm64`, `arm/v7`), and optimized for minimal memory and CPU usage. Ideal for both cloud and edge deployments.
|
||||||
|
|
||||||
|
### 🧪 Tested. Verified. Trusted.
|
||||||
|
|
||||||
|
Actively maintained with **automated testing**, **Docker image size optimizations**, and verified support across major container platforms.
|
||||||
|
|
||||||
---
|
---
|
||||||
## Available image registries
|
## Available image registries
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user