Bug 248545 - zfs: add possibility to create an initial send stream without intervening snapshots
Summary: zfs: add possibility to create an initial send stream without intervening sna...
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 12.1-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-fs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-09 07:24 UTC by Martin Birgmeier
Modified: 2020-08-09 08:05 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Birgmeier 2020-08-09 07:24:24 UTC
Scenario:
- FreeBSD 12.1-RELEASE-p6
- Using "zfs send" to create backups
- Using "-R" flag to create backups of zfs filesystem hierarchies
- Using "-I" or "-i" to create incremental backups
- For these backups, specifically named snapshots are used which are created using "zfs snapshot -r <top filesystem>" (the <top filesystem> is not necessarily a complete pool but can be a subset of a pool).
- There are other (intervening) snapshots that are irrelevant for backup purposes.

Result:
1. It is possible to create a full recursive backup stream (similar to a level 0 dump) using "zfs send -R ...", including all intervening snapshots, even those irrelevant for backup purposes.
2. It is NOT possible to create a full recursive backup stream using "zfs send -R ...", excluding all intervening snapshots.
3. It is possible to create an incremental recursive backup stream using "zfs send -R -I ...", including all intervening snapshots.
4. It is possible to create an incremental recursive backup stream using "zfs send -R -i ...", excluding all intervening snapshots.

Expected result:
It should be possible to create a full recursive backup stream WITHOUT the intervening snapshots (case 2. above).

-- Martin
Comment 1 Martin Birgmeier 2020-08-09 07:27:44 UTC
p.s. I am wondering how "zfs send -R -i ..." works in the presence of clones using a snapshot in between the -i <snapshot> and the target <snapshot>.