openzfs / zfs

OpenZFS on Linux and FreeBSD
https://openzfs.github.io/openzfs-docs
Other
10.57k stars 1.74k forks source link

send -X looks at excluded file systems #15961

Open clhedrick opened 7 months ago

clhedrick commented 7 months ago

System information

Type | Version/Name Ubuntu | 22.04 Distribution Name | Ubuntu Distribution Version | 22.04 Kernel Version | 6.5.0-21-generic Architecture | x86 OpenZFS Version | 2.2.3

Describe the problem you're observing

zfs send -v -R -c -I "$LAST" "$NEWEST" -X main/datasets

fails if main/datasets@$NEWEST doesn't exist

Describe how to reproduce the problem

Include any warning/errors/backtraces from the system logs

cannot send main@20240304-1301 recursively: snapshot main/datasets@20240304-1301 does not exist
warning: cannot send 'main@20240304-1301': backup failed
clhedrick commented 7 months ago

main/datasets@$LAST doesn't need to exist, which is right.