Add the equivalent of restic restore `--delete` option during a k8up restore
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
I saw that in the values.yaml, I can pass envVars to add RESTIC_OPTIONS as addition env, But in the doc it expect to have a key=value for this env... Not quite sure how to correctly set this up, but I will do some tests
Silly me, I saw a current open PR linked to the add of latest restic version (because its a new feature in the latest version of restic): https://github.com/k8up-io/k8up/pull/1001
Would be cool if its possible for us, end users to include these additional options during restore, especially --delete, it fits well for my use case.