From owner-freebsd-questions@FreeBSD.ORG Fri Apr 27 14:44:54 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 BE6D6106566B for ; Fri, 27 Apr 2012 14:44:54 +0000 (UTC) (envelope-from frank@fstaals.net) Received: from isp-bos-01.edutel.nl (isp-bos-02.edutel.nl [88.159.1.183]) by mx1.freebsd.org (Postfix) with ESMTP id 694658FC0A for ; Fri, 27 Apr 2012 14:44:54 +0000 (UTC) Received: from isp-aos-01.edutel.intern (unknown [10.115.3.110]) by isp-bos-01.edutel.nl (Postfix) with ESMTP id F348C2C63A9 for ; Fri, 27 Apr 2012 16:35:31 +0200 (CEST) Received: from localhost (localhost.localdomain [127.0.0.1]) by isp-aos-01.edutel.intern (Postfix) with ESMTP id DF6E73DC206 for ; Fri, 27 Apr 2012 16:35:31 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at isp-aos-01.edutel.intern Received: from isp-aos-01.edutel.intern ([127.0.0.1]) by localhost (isp-aos-01.edutel.intern [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XcKMIAC71gvQ for ; Fri, 27 Apr 2012 16:35:17 +0200 (CEST) Received: from lacus.fstaals.net (104-208.ftth.onsbrabantnet.nl [88.159.208.104]) by isp-aos-01.edutel.intern (Postfix) with ESMTPA id 90FE33DC240 for ; Fri, 27 Apr 2012 16:35:16 +0200 (CEST) Received: from lacus.fstaals.net (unknown [192.168.10.14]) by filter.fstaals.local (Postfix) with ESMTP id DB7167F4FB5 for ; Fri, 27 Apr 2012 16:35:10 +0200 (CEST) Received: from localhost (unknown [192.168.5.10]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: frank) by lacus.fstaals.net (Postfix) with ESMTPSA id D02067F4D6E for ; Fri, 27 Apr 2012 16:35:10 +0200 (CEST) From: Frank Staals To: FreeBSD-Questions User-Mail-Address: frank@fstaals.net Date: Fri, 27 Apr 2012 16:35:10 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (darwin) MIME-Version: 1.0 Content-Type: text/plain Subject: 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 14:44:54 -0000 Hey Everyone, 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=17813). 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, just 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. 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, 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? Regards, -- - Frank