You are looking at the documentation of a prior release. To read the documentation of the latest release, please
visit here.
We use cookies and other similar technology to collect data to improve your experience on our site, as described in our Privacy Policy.
Run Production-Grade Databases on Kubernetes
Backup and Recovery Solution for Kubernetes
Run Production-Grade Vault on Kubernetes
Secure HAProxy Ingress Controller for Kubernetes
Kubernetes Configuration Syncer
Kubernetes Authentication WebHook Server
KubeDB simplifies Provision, Upgrade, Scaling, Volume Expansion, Monitor, Backup, Restore for various Databases in Kubernetes on any Public & Private Cloud
A complete Kubernetes native disaster recovery solution for backup and restore your volumes and databases in Kubernetes on any public and private clouds.
KubeVault is a Git-Ops ready, production-grade solution for deploying and configuring Hashicorp's Vault on Kubernetes.
Secure HAProxy Ingress Controller for Kubernetes
Kubernetes Configuration Syncer
Kubernetes Authentication WebHook Server
Stash by AppsCode is a Kubernetes operator for backup and recovery of Kubernetes stateful workloads. Stash v0.9.0+ supports backup and restoration of PerconaXtraDB databases. KubeDB v0.13.0+ comes with built-in support for Stash. We recommend to use Stash for backup and restore your PerconaXtraDB databases instead of KubeDB’s native method.
This guide will give you an overview of why you should use Stash to backup and restore your PerconaXtraDB databases.
As a dedicated backup and recovery tool, Stash has the following key benefits:
Automatic Cleanup: Stash lets you provide a retention policy for the snapshots. So, you don’t have to worry about running out of space for your backed up data. Stash will automatically delete the old snapshots according to the retention policy.
Deduplication: Stash does not upload the entire targeted data on each backup. Instead, it uploads only the changes since the last backup. This reduces network bandwidth usage and backup time.
Encryption: Stash keeps all the data in backend encrypted. Hence, your data is safe even if your backend gets compromised.
Instant Backup: Stash lets you trigger a backup instantly. This is particularly useful when you want to perform some experimental operations on your database and you want to make sure that you have backed up the current state of your database.
Auto Backup: You can also configure a common backup template for your databases. Then, you can enable backup for a particular database by adding some annotations to the respective AppBinding
object. In Stash parlance, we call it Auto-Backup.
Rich Prometheus Metrics: Stash provides rich Prometheus metrics for both backup and restore processes. So, you can always keep an eye on the backup process and configure an alert in case something goes wrong.
Independent of Database Life Cycle: You can enable or disable backup for your databases without interrupting your services.
Customizability: Stash gives you the ability to customize the backup process. You can pass various arguments to the backup and restore command. You can also create your own backup or restore flow through addon mechanism.
Note: Currently Stash supports only for PerconaXtraDB Cluster (not standalone yet) backup-restoration. So this guide is only for cluster backup-restoration.
In order to backup PerconaXtraDB Cluster database using Stash, follow the following steps:
Install Stash: At first, you have to install Stash. Please, follow the steps from here.
Install PerconaXtraDB Addon: Then, you have to install PerconaXtraDB addon for Stash. Please, follow the steps from here.
Understand the Backup and Restore Flow: Now, you can read the following guide from here to understand how backup and restore of a PerconaXtraDB database works in Stash.
Get Started: Now, follow the guidelines of your desired database version to go through the steps of backup and restore process from here.