From owner-freebsd-questions@FreeBSD.ORG Fri Apr 27 18:11:30 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B685106564A for ; Fri, 27 Apr 2012 18:11:30 +0000 (UTC) (envelope-from e.schuele@computer.org) Received: from p3plsmtpa06-09.prod.phx3.secureserver.net (p3plsmtpa06-09.prod.phx3.secureserver.net [173.201.192.110]) by mx1.freebsd.org (Postfix) with SMTP id 3252D8FC15 for ; Fri, 27 Apr 2012 18:11:30 +0000 (UTC) Received: (qmail 21138 invoked from network); 27 Apr 2012 18:04:50 -0000 Received: from unknown (199.254.197.8) by p3plsmtpa06-09.prod.phx3.secureserver.net (173.201.192.110) with ESMTP; 27 Apr 2012 18:04:50 -0000 Message-ID: <4F9ADFC1.608@computer.org> Date: Fri, 27 Apr 2012 13:04:49 -0500 From: Eric Schuele User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.3) Gecko/20120315 Thunderbird/10.0.3 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: In-Reply-To: X-Enigmail-Version: 1.4 OpenPGP: url=http://www.ravenlock.us/keys/pub_schuele.pgp Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig533F5EC141983A114508439E" Subject: Re: Synchronising jails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Apr 2012 18:11:30 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig533F5EC141983A114508439E Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 04/27/2012 09:35, Frank Staals wrote: >=20 > Hey Everyone, >=20 > I'm looking for a way to synchronise two jails. More specifically, I > would like to keep/maintain an exact copy of a given jail. As an > example: Suppose I build a jail A on some system (in my particular case= > build with ezjail) , and I copy the jail > into jail B on some other system (using tar, as is mentioned > here: http://forums.freebsd.org/showthread.php?t=3D17813). Now stuff > happens in Jail A, e.g. files change, new stuff is installed etc. I > would like to propagate these changes to jail B, but since the transfer= > is over WAN I would like not to have to copy the entire jail again, jus= t > the stuff that has changed since the last backup. It is safe to assume > nothing in Jail B changes: I basically want to maintain the exact copy > so if something would happen to the system running Jail A I can > immediately switch to jail B without much hassle.=20 >=20 > Normally I would say this a perfect use case for rsync. But as the > aforementioned thread mentions ``scp or similar wont work to copy a > jail'', and I consider rsync similar to scp, rsync is dissimilar in that it is capable of preserving links. It may likely do the job? > I am under the impression > that rsync would not be usable in this situation. Can anyone shed some > light on this, or suggest an alternative to synchronise the jails? =20 >=20 >=20 > Regards,=20 >=20 --------------enig533F5EC141983A114508439E 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.19 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+a38EACgkQngSDRM3IXUpmNgCdEm9SMTX+xIaqRAKJi+3Hsg4a w44AniMkQvou52o/VNl7soxkJ9ZAgDI7 =Oblk -----END PGP SIGNATURE----- --------------enig533F5EC141983A114508439E--