From owner-freebsd-questions@FreeBSD.ORG Fri Apr 27 21:42:41 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 257361065670 for ; Fri, 27 Apr 2012 21:42:41 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9F4028FC0A for ; Fri, 27 Apr 2012 21:42:40 +0000 (UTC) Received: by eekd17 with SMTP id d17so328167eek.13 for ; Fri, 27 Apr 2012 14:42:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:in-reply-to:mime-version:content-transfer-encoding :content-type:message-id:cc:x-mailer:from:subject:date:to; bh=0O8dlM3ZhAjXNwvuyBkWiVrC85UGMoMDazVh3Tahd+w=; b=0XoaY5sKsttDaxEEeuYVhLhQeFskcm7Kkax1IBNLpD9A/+GfCaLMBbdJKm6owmsj1T WuLPEyuUFyPnDaL+tQTJGwn5FKUPSoPHWIX0E2jqiThoV3+3rj3PNKLYgMKRTVEF2PPc vXBrovT8aVIEtVJKlxQhKWm83Oa4tSR2BviX+AuejjqiOPU0IPAcTYQuNZS4WWgavqG/ mezhlu+GeTFhnk5FyKWELBXuwcrYRQjkrxnvcN9Uw8k7t0scYAQjHbdywvBQvmqnbQ3x ntiQ7GEELrNfXmdl33uZRU8tvAdgBIiRUXAcYzvh+dbZKUM5go45Ogofdbx6JG6+/1ib Q91w== Received: by 10.213.112.143 with SMTP id w15mr867042ebp.270.1335562632876; Fri, 27 Apr 2012 14:37:12 -0700 (PDT) Received: from [192.168.1.13] (5ED0E470.cm-7-1d.dynamic.ziggo.nl. [94.208.228.112]) by mx.google.com with ESMTPS id z47sm35955636een.5.2012.04.27.14.37.11 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 27 Apr 2012 14:37:11 -0700 (PDT) References: In-Reply-To: Mime-Version: 1.0 (1.0) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: <7D6B2E86-2318-495C-A13C-87E122F013FD@gmail.com> X-Mailer: iPad Mail (9B176) From: Johan Hendriks Date: Fri, 27 Apr 2012 23:37:13 +0200 To: Frank Staals Cc: "freebsd-questions@freebsd.org" 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 21:42:41 -0000 >=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, 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.=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, 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 > --=20 >=20 > - Frank > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.or= g" Maybe you can store your jails on a per jail zfs filesystem. Then use zfs send/receive to send the incremental changes to the remote mach= ine. Regards, Johan Hendriks=