0

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?

1 Answers1

0

Snapshots are dataset children.

Snapshots are like pointers on a timeline.

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

freezed
  • 133
  • 11
  • I this really how zfs implements this? The creation time is not reliable as it depends on the system time, ntp, etc. – Manuel Schmidt Jun 15 '23 at 05:07
  • 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 (-: – freezed Jun 15 '23 at 13:26
  • I use zfs also on laptops and don’t want a dead motherboard battery mess up by snapshots. – Manuel Schmidt Jun 16 '23 at 16:37