Score:0

How does zfs know which snapshots to send with the `-I` flag?

it flag

From the manual:

A group of incremental snapshots can be combined into one snapshot by using the zfs send -I option. For example:

# zfs send -I pool/fs@snapA pool/fs@snapD > /snaps/fs@all-I

How does zfs know that @snapB and @snapC are in between @snapA and @snapD? Is there are parent/child relationship between snapshots? If yes, how can I query the parent of a snapshot?

Score:0
ca flag

Snapshots are dataset children.

Snapshots are like pointers on a timeline.

Try zfs list -rt snap -o name,creation to get the snapshot chronology,

Manuel Schmidt avatar
it flag
I this really how zfs implements this? The creation time is not reliable as it depends on the system time, ntp, etc.
freezed avatar
ca flag
My comment was just a spot, not an implementation explanation. Your comment is correct: it could be interesting to test how ZFS works under datetime changes… I think if you had trouble related to datetime on your server, you'll get problem before ZFS management (-:
Manuel Schmidt avatar
it flag
I use zfs also on laptops and don’t want a dead motherboard battery mess up by snapshots.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.