oetiker / znapzend

zfs backup with remote capabilities and mbuffer integration.
www.znapzend.org
GNU General Public License v3.0
609 stars 137 forks source link

The first znapzend into an empty destination only sends the newest snapshot, not the scheduled history #513

Closed jimklimov closed 3 years ago

jimklimov commented 4 years ago

Follows up from #464 for the code at https://github.com/oetiker/znapzend/blob/master/lib/ZnapZend/ZFS.pm#L541 :

    if ($lastCommon){
        @cmd = ([@{$self->priv}, 'zfs', 'send', @sendOpt, $incrOpt, $lastCommon, $lastSnapshot]);
    }
    else{
        @cmd = ([@{$self->priv}, 'zfs', 'send', @sendOpt, $lastSnapshot]);
    }

After #497 is merged, we would be able to use $lastSnapshotToSee option to first replicate the oldest source snapshot (filtered by autocreated pattern, or covering manually named as well - to match our default -I sending that would include these... or one vs another according to skipIncrements setting?) and then increment from that point.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.