forked from third-party-mirrors/zfs_autobackup
Escape dataset verify command
This commit is contained in:
parent
748e6d4739
commit
6b5edab09d
@ -288,7 +288,9 @@ def zfs_transfer(ssh_source, source_filesystem, first_snapshot, second_snapshot,
|
||||
raise(subprocess.CalledProcessError(target_proc.returncode, target_cmd))
|
||||
|
||||
debug("Verifying if snapshot exists on target")
|
||||
run(ssh_to=ssh_target, cmd=["zfs", "list", target_filesystem+"@"+second_snapshot ])
|
||||
run(ssh_to=ssh_target, input=target_filesystem+"@"+second_snapshot + "\0", cmd=
|
||||
[ "xargs", "-0", "-n", "1", "zfs", "list" ]
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user