X-Git-Url: http://git.pippins.net/embedvideo/.git/static/git-logo.png?a=blobdiff_plain;f=zfs-replicate;fp=zfs-replicate;h=352c8e14c8ed9390689edbeb0a8bf501f5f4094f;hb=9abe0a87af0eedf581b9fae58fd1c62974ca004b;hp=cd38657fbf00f80f3b9d1d809b7ecf2eaa2fe4a8;hpb=4d5e8199929308142509eaae652bbfdc559dfca3;p=zfs-ubuntu%2F.git diff --git a/zfs-replicate b/zfs-replicate index cd38657..352c8e1 100755 --- a/zfs-replicate +++ b/zfs-replicate @@ -262,6 +262,12 @@ else if [ $? != 0 ]; then fatal_and_exit "-E- remote full $zfs send $current_backup_marker command failed on $hostname" $mailto fi + # Make sure the mount point of our backed up filesystem is mounted under the backups pool not the src filesystem + mountpoint=`$zfs get -H mountpoint ${backup_pool}/${remote_fs} | awk '{print $3}'` + backup_pool_mountpoint=`$zfs get -H mountpoint ${backup_pool} | awk '{print $3}'` + if [[ "$mountpoint" != "${backup_pool_mountpoint}/${remote_fs}" ]]; then + $zfs set mountpoint="${backup_pool_mountpoint}/${remote_fs}" "${backup_pool}/${remote_fs}" + fi fi fi