Comment

Comment by vbezhenar

Can someone suggest an approach to backup container environment? E.g. running inside Kubernetes.

As I see it: I write some kind of configuration.

someproject-db is a deployment which runs a postgres db. Tool should connect to this DB, issue some kind of pg_backup command, capture output, retrieve some metadata about previous backup from S3, compute difference with previous run, compress that difference and store it to S3.

anotherproject is a deployment which runs an sqlite db. Tool should do the same but with sqlite-specific commands.

yetanotherproject-data is a pvc which has attached pv. Tool should find pod which mounted this volume, exec into that pod and retrieve pv data, again find different and store it to S3.

Of course things should be configurable. Like store difference every 15 minutes, store complete backup every week and so on.

I'm fine with manual recover and with manual configuration (I just don't want to write and test all the scripts myself).

What I don't want is some kind of magic tool which will backup the entire cluster, etcd and my grandparents automatically in some magic way only for $50k/cpu core.

parent vbezhenar 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton