I have a bunch of #zfs snapshots hourly.0, hourly.1 ... hourly.23. Every hour the oldest gets destroyed, the remainder get renamed, and a new hourly.0 is created. I want to create a duplicate of one of them and keep it for a while with a stable name, while still being able to destroy the original hourly.whatever when its time comes, so a read-only clone won't work. Help?
=> More informations about this toot | More toots from DrHyde@fosstodon.org
@DrHyde https://github.com/jimsalterjrs/sanoid by @jimsalter
=> More informations about this toot | More toots from apicultor@hachyderm.io
@apicultor @jimsalter can you point me at where in the documentation it tells me how to do what I want? Because I can't see it.
=> More informations about this toot | More toots from DrHyde@fosstodon.org
@DrHyde @apicultor just zfs rename
the snapshot so it doesn't look like a sanoid snapshot. Sanoid ignores snapshots which aren't in its name format.
=> More informations about this toot | More toots from jimsalter@fosstodon.org
@DrHyde @apicultor reading up thread of course, this assumes you are using sanoid in the first place, which it doesn't look like you are.
You can't really "copy" a snapshot, so you can't do exactly what you're asking to do here. The closest thing to "copying" a snapshot is cloning it, but the clone makes the parent snapshot indestructible, so not really what you're looking for.
=> More informations about this toot | More toots from jimsalter@fosstodon.org
@DrHyde sanoid itself doesn't work quite like whatever you're doing now; instead of constantly remaining older snapshots, it names them @autosnap_yyyy-mm-dd:hh:mm:ss_(hourly|daily|monthly)
and destroys them when they are no longer within policy, with separate policies defined for hourly/daily/monthly snapshots.
But it completely ignores snapshots that aren't using its name format.
=> More informations about this toot | More toots from jimsalter@fosstodon.org This content has been proxied by September (3851b).Proxy Information
text/gemini