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

[Feature request] Protect last x number of snapshots #20

Open
ayakael opened this issue Dec 27, 2022 · 5 comments
Open

[Feature request] Protect last x number of snapshots #20

ayakael opened this issue Dec 27, 2022 · 5 comments

Comments

@ayakael
Copy link

ayakael commented Dec 27, 2022

When using syncoid, or other send-based backup solution, the last snapshot is used to calculate the delta to send an incremental stream. Using your script in that application would run the risk of destroying snapshots that zfs send/recv needs for incremental backup. It'd be nice if there was a feature to protect the last x number of snapshosts as to ensure their existence regardless of time cut-off point.

@joltcan
Copy link

joltcan commented Jan 15, 2023

And also to make sure that there is always a remaining copy on the remote host if this is needed (i.e. because I'm paranoid)

@bahamas10
Copy link
Owner

👍 i'm all for adding a protect feature. @joltcan that is a good idea but anything remote is outside the scope of what zfs-prune-snapshots should do imo

@joltcan
Copy link

joltcan commented Feb 5, 2023

Forget the remote part, that is only one use-case. Regardless I would prefer being able to have X copies left as a failsafe.

@mikebakke
Copy link

Additional vote (as if required) for protect option. I am a newb with ZFS and am simultaneously in awe of the benefits it brings and abject terror at the ease with which data can be lost by the user doing something they really don't fully understand :-)

@fernsehmuell
Copy link

+1 this should also be the default (never delete ALL snapshots, keep the latest, so you can do differential backups). If you really want to delete all of them use a flag like -f.

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

No branches or pull requests

5 participants