Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
s4ndalHat opened this issue Dec 3, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@s4ndalHat
Copy link

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

@s4ndalHat s4ndalHat added the enhancement New feature or request label Dec 3, 2024
@s4ndalHat
Copy link
Author

s4ndalHat commented Dec 4, 2024

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

@s4ndalHat
Copy link
Author

s4ndalHat commented Dec 5, 2024

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): #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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant