The Kubernetes backup & migration solution that designed for human beings!
- Support MongoDB backup & restore.
- Accept kubeconfig(currently supported in the migrations)
- Support PostgreSQL backup & restore.
- Add migrations feature.
- Support S3 compilable object storages not just S3.
- Helm chart.
Bnkr goal is to backup & migrate only your valuable data inside Kubernetes cluster not the whole cluster, any contribution in this regard is more than welcome.
Bnkr itself is a single binary application however it depends on some other tools and applications, for example, it uses mysqldump
to backup MySQL databases so it is better to use Bnkr official image because you will guarantee that all the dependencies already exist.
The easiest way to install BNKR is to use the official Helm chart.
BNKR binary is basically a web server that listens on any port you specify to it, here are some of the environment variables that you can pass to BNKR:
PORT="5000"
USERNAME="John Doe"
USERPASSWORD=StrongPassword
USEREMAIL=me@example.com
SETUP="true"
PRODUCTION="true"
DB_HOST=postgreshost
DB_USER=bnkr
DB_PASSWORD=StrongPassword
DB_NAME=bnkr
DB_PORT="5432"
DB_TIMEZONE=Europe/Istanbul
DB_SSLMODE=disable
You can run BNKR as deployment and pass a service account to it with enough capabilities that allow it for example to access the data that it will backup.
In almost all the cases that we faced most problems came from incorrect permissions, please make sure the for example the DB user has the capabilities to dump and restore the DB, the SSH user has the capabilities to create/delete files, and so on.
Copyright (c) 2022 Mohammed Al-Mahdawi
Licensed under the MIT license.