First - great simple script. Exactly what I was looking for.
At the moment finding common snapshots to protect them during pruning depends on both source and target datasets being present which does not have to be always the case and creates risk that pruning will delete last sent snapshot.
It would be great to add "hold" feature:
https://www.thegeekdiary.com/understanding-holding-a-zfs-snapshot-feature/
This way snapshot would be safe.
After successful sent hold can be removed and new snapshot marked as hold.
First - great simple script. Exactly what I was looking for.
At the moment finding common snapshots to protect them during pruning depends on both source and target datasets being present which does not have to be always the case and creates risk that pruning will delete last sent snapshot.
It would be great to add "hold" feature:
https://www.thegeekdiary.com/understanding-holding-a-zfs-snapshot-feature/
This way snapshot would be safe.
After successful sent hold can be removed and new snapshot marked as hold.