use send options on initial replication

This commit is contained in:
2019-04-20 10:48:16 +02:00
parent ddc7029873
commit a22c2d35f7

View File

@ -57,7 +57,7 @@ def send_snapshot(
repl_from = repl_from.strftime(time_format) repl_from = repl_from.strftime(time_format)
args = [ 'send' ] + send_opts + [ inc_flag, '{}@{}'.format(fs, repl_from), '{}@{}'.format(fs, snap) ] args = [ 'send' ] + send_opts + [ inc_flag, '{}@{}'.format(fs, repl_from), '{}@{}'.format(fs, snap) ]
else: else:
args = [ 'send', '{}@{}'.format(fs, snap) ] args = [ 'send' ] + send_opts + [ '{}@{}'.format(fs, snap) ]
pipecmd = remote_zfs_cmd + [ 'receive' ] + recv_opts + [ remote_target ] pipecmd = remote_zfs_cmd + [ 'receive' ] + recv_opts + [ remote_target ]