Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Feb 2016 16:18:40 -0500
From:      Allan Jude <allanjude@freebsd.org>
To:        freebsd-hackers@freebsd.org
Subject:   Re: ZFS full system backup hoses the backup host.
Message-ID:  <56CF6FB0.1010001@freebsd.org>
In-Reply-To: <CACpH0Me58jK%2BOz3PCqH93NEn=5V1SKwPGdku62sAVLVh%2BWxEeA@mail.gmail.com>
References:  <CACpH0Me58jK%2BOz3PCqH93NEn=5V1SKwPGdku62sAVLVh%2BWxEeA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--vO7lHpBfqUvaXbKibFNiVUDD3alVag7gQ
From: Allan Jude <allanjude@freebsd.org>
To: freebsd-hackers@freebsd.org
Message-ID: <56CF6FB0.1010001@freebsd.org>
Subject: Re: ZFS full system backup hoses the backup host.
References: <CACpH0Me58jK+Oz3PCqH93NEn=5V1SKwPGdku62sAVLVh+WxEeA@mail.gmail.com>
In-Reply-To: <CACpH0Me58jK+Oz3PCqH93NEn=5V1SKwPGdku62sAVLVh+WxEeA@mail.gmail.com>
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

On 2016-02-25 15:58, Zaphod Beeblebrox wrote:
> This violated POLA for me.  I backed up a host using:
>=20
> time zfs send -vRI @backup-1-e zroot@backup-1-f | ssh backuphost "zfs
> receive -vFud zroot/backup/host"
>=20
>=20
> Only to find that the backup host (a week later) failed to reboot?  The=

> problem?  Well... -u on receive marks the filesystem as unmounted only
> "right now" not "next reboot" and -R on send implies -p (send dataset
> attributes) and...
>=20
> ... zroot/ROOT/default mountpoint=3D/ (among others).
>=20
> The only hackish way to fix this I see is to have a list of mountpoints=
 to
> correct --- which is partially what I'm trying to avoid by using -R ---=
 I
> just want the whole thing backed up.
>=20
> What have other people done to get around this and/or can we either put=
 in
> an "ignore properties" on receive flag or a -R on send that doesn't sen=
d
> them?
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.o=
rg"
>=20

The sysutils/zxfer script allows you to override properties during
replication, so I usually set readonly=3Don and for such a backup would
set mountpoint=3Dnone



--=20
Allan Jude


--vO7lHpBfqUvaXbKibFNiVUDD3alVag7gQ
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)

iQIcBAEBAgAGBQJWz2+zAAoJEBmVNT4SmAt+tWIQALrMRn02UvKuXh/G7bZlvxuE
2ThgGb6pDWE5HSZhIgJfvb7O6zr6ETICCU/L9OfOFsiHvAlYdDsr2fpHAkEObY8e
0EKDgoBF0ZjdqA6d0DnhCfgmny7yTwshGObQNYJ0suz3Suwz6PAoIv/KU4UycgPo
sPf9E+91G3MjDf4AXsfe/VQRr+0Ckos6XnWc1oBBSfKY6jc/eRQQ6aIMPYVbgtFq
R46LWewSyxFbjt5q2RXPDJqizx+vCgb2H54PLtMq9ZBEa/4jbJlQcH2dQTL6VZoP
JLJ1zT6liB1wgzYKb5cx12CtYTY8TAksUNtD80Mptw6Q18QwqFWr4qZqKt3Oxyed
LbOVqmHARJaxtZF8/vwVfczlHnYT5cPyGh45zz3D+C3tEdEZC9ZLmRKHKKGApOc0
+zglStLpHNd4jcSy6CfpYuwBr6yOpqqnY27VUGj6gG6yD5HQKwWDdJwjXNyVfUCi
ryA7cu6ve6KGZ4Who5iACp15xPsiin+/sChyzzZQAW8cspBvtKuXVyr+WKx1mJSe
H3xM0D6O0wuWgA0zeO6AAR9t/wOnbYAmPvR+MfmMzoiOoT1iTpNdpSpkXQpTM8ZO
Z9R7oV0ZWWpFCA0GTA/t9edFkNNipqrwQbALc0D4/AV8yTpmffrIo/Yp3TsZ9Rac
qGglc7gqaXDdzRv4pmY5
=Vp2n
-----END PGP SIGNATURE-----

--vO7lHpBfqUvaXbKibFNiVUDD3alVag7gQ--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56CF6FB0.1010001>