comparison sbin/fzfs @ 427:7056e5b7712d

Improvenents in handling names with spaces: quoting fixes
author Franz Glasner <hg@dom66.de>
date Thu, 21 Sep 2023 12:03:09 +0200
parents 2cd4777821fc
children 824e88618376
comparison
equal deleted inserted replaced
426:2cd4777821fc 427:7056e5b7712d
354 # Source root to target root 354 # Source root to target root
355 # 355 #
356 if [ -z "${_opt_mountpoint}" ]; then 356 if [ -z "${_opt_mountpoint}" ]; then
357 _rflags="${_rflags} -x mountpoint" 357 _rflags="${_rflags} -x mountpoint"
358 else 358 else
359 _rflags="${_rflags} -o mountpoint="'"'"${_opt_mountpoint}"'"' 359 _rflags="${_rflags} -o mountpoint='${_opt_mountpoint}'"
360 fi 360 fi
361 else 361 else
362 _rflags="${_rflags} -x mountpoint" 362 _rflags="${_rflags} -x mountpoint"
363 fi 363 fi
364 echo "zfs send -Lec -p -v ${_ds}${_ds_source_snapshot} | zfs receive -v $_opt_nomount ${_rflags} ${_ds_target}${_ds_relname}" 364 echo "zfs send -Lec -p -v '${_ds}${_ds_source_snapshot}' | zfs receive -v ${_opt_nomount} ${_rflags} '${_ds_target}${_ds_relname}'"
365 done 365 done
366 } 366 }
367 367
368 368
369 #: 369 #: