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

ZFS filesystems with a : are not handled correctly #543

Closed zdykstra closed 3 years ago

zdykstra commented 3 years ago

At least on Linux with OpenZFS, : is a valid character in a ZFS filesystem name. The function dataSetExists in lib/ZnapZend/ZFS.pm calls splitHostData - the regular expression in that is unable to correctly parse the filesystem name, so it returns undef.

sudo znapzendzetup create SRC '30d=>12h' zroot/home/zdykstra/tmp:test
Use of uninitialized value $ssh[7] in open at /usr/local/znapzend/lib/ZnapZend/ZFS.pm line 113.
cannot open '': empty component or misplaced '@' or '#' delimiter in name
ERROR: filesystem zroot/home/zdykstra/tmp:test does not exist
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.