oetiker / znapzend

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

Problem [#437]: run-once should have option to bypass zend_delay time… #448

Closed jimklimov closed 4 years ago

jimklimov commented 4 years ago

… for troubleshoot purpose

Solution: do what the subject says :)

Add a --nodelay option (though in fact not constrained only for runonce ATM)

Signed-off-by: Jim Klimov jimklimov@gmail.com

Self-test updated for this use-case, acts as expected:

...
# zfs get -H -s local -o value org.znapzend:enabled tank/source/child/grandchild
CLI option --nodelay was requested, so ignoring backup plan option 'zend-delay' (was 1) at /export/home/jim/shared/znapzend/t/../lib/ZnapZend.pm line 226.
[Thu Oct 24 14:14:31 2019] [info] starting work on backupSet tank/source
...
coveralls commented 4 years ago

Coverage Status

Coverage increased (+0.03%) to 88.715% when pulling f679514029b5f952aaf06853f1caf270647a3666 on jimklimov:znapzend-nodelay into 1505a3a634459b0c1907478ad91ad6bf86931736 on oetiker:master.