Ancestors

Toot

Written by David Cantrell 🏏 on 2024-12-11 at 11:12

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

Descendants

Written by Apicultor 🐝 on 2024-12-11 at 11:50

@DrHyde https://github.com/jimsalterjrs/sanoid by @jimsalter

=> More informations about this toot | More toots from apicultor@hachyderm.io

Written by David Cantrell 🏏 on 2024-12-11 at 11:58

@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

Written by Jim Salter on 2024-12-11 at 15:14

@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

Written by Jim Salter on 2024-12-11 at 15:16

@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

Written by Jim Salter on 2024-12-11 at 15:19

@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

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113633889809025417
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
279.406173 milliseconds
Gemini-to-HTML Time
1.421104 milliseconds

This content has been proxied by September (3851b).