k8up-io / k8up

Kubernetes and OpenShift Backup Operator
https://k8up.io/
Apache License 2.0
717 stars 66 forks source link

Add the equivalent of restic restore `--delete` option during a k8up restore #1026

Open s4ndalHat opened 22 hours ago

s4ndalHat commented 22 hours ago

Summary

As "k8up user"\ I want "to be able to delete destination data files that are not in my snapshot"\ So that "I keep a consistent data in my restore "

Context

During a restore, k8up doesn't delete datas that are old in the destination path during a multi cluster scenario. That would be problematic when old datas are still in my destination path and so my datas are not consistent.

As example in a nextcloud environnement, I still have old data files that are already deleted and missing in my snapshot.

I am aware that restic keep data update when the file are present, but I think it doesn't delete old files for my case.

Out of Scope

No response

Further links

No response

Acceptance Criteria

No response

Implementation Ideas

No response