From owner-freebsd-questions@freebsd.org Thu Jul 13 13:03:03 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 21593DA1F33 for ; Thu, 13 Jul 2017 13:03:03 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from inet08.hamilton.harte-lyne.ca (inet08.hamilton.harte-lyne.ca [216.185.71.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "inet08.hamilton.harte-lyne.ca", Issuer "CA_HLL_ISSUER_2016" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id E4DB676CB4 for ; Thu, 13 Jul 2017 13:03:02 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from localhost (localhost [127.0.0.1]) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTP id D2820621F4; Thu, 13 Jul 2017 09:03:00 -0400 (EDT) X-Virus-Scanned: amavisd-new at harte-lyne.ca Received: from inet08.hamilton.harte-lyne.ca ([127.0.0.1]) by localhost (inet08.hamilton.harte-lyne.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id q-63EeQs04Zh; Thu, 13 Jul 2017 09:02:58 -0400 (EDT) Received: from webmail.harte-lyne.ca (inet04.hamilton.harte-lyne.ca [216.185.71.24]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTPSA id 608FC6214A; Thu, 13 Jul 2017 09:02:58 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=harte-lyne.ca; s=dkim_hll; t=1499950978; bh=+UzBZHOB96qAby2ajtccXJvXaVqBwciynIed4aI1ZFI=; h=In-Reply-To:References:Date:Subject:From:To:Cc:Reply-To; b=ARq3KgbCWzrgPqBAG5Hd0OVIhQse4d8pYV0iKvkoSCEZ+e6jRMWXEqlC7vaICj+4Q aOX94AK/2yHX0N7RbNfd6LI88oS32eU0Lhq9YPfY3EBdalA/jm+kfBTeMAcfTz/Odv DnaSr2VMllfxer8oKg58n9uUPo4v63zGEOM7/C3IgeBzgcQ7bEhYtubigPZ5BHU4vB WZk14kPpuALO9mGEkau/LOEMmIG15+9VtgS7UmYb+wkI7HmFDXQvU6fkFBYt0nTSBQ bFQD0r8J9bvr2qeaC9UaYi/Crf86N89JvYWVllYuwo15DzX2eKReFOTnyzrA/PRbNS AjxAuL6YaxDaQ== Received: from 216.185.71.44 (SquirrelMail authenticated user byrnejb_hll) by webmail.harte-lyne.ca with HTTP; Thu, 13 Jul 2017 09:02:58 -0400 Message-ID: In-Reply-To: References: Date: Thu, 13 Jul 2017 09:02:58 -0400 Subject: Re: A readers digest version of transferring a jail from one host to another. From: "James B. Byrne" To: "Kaya Saman" Cc: freebsd-questions@freebsd.org Reply-To: byrnejb@harte-lyne.ca User-Agent: SquirrelMail/1.4.22-5.el6 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jul 2017 13:03:03 -0000 On Wed, July 12, 2017 13:03, Kaya Saman wrote: > Just to chime in here quickly as I have had to do this too, however, > not using ezjail - forgive me if this has already been mentioned as > I've just caught the tail of the thread and of course don't want to > hijack anyone elses input... > > > For me I usually stop jail: > > /etc/rc.d/jail stop > > rsync -"flags" path/to/jail "rsync:"/new/path/to/jail > > > eg. rsync -avvc --progress --remove-source-files /jl/myjail > rsync://10.0.0.1:/jl/myjail > > > then start the new jail on host 10.0.0.1: /etc/rc.d/jail start myjail > > > this is an alternate as an FYI :-) > > > Regards, > > > Kaya > With ezjail one also needs to rsync, or otherwise create or transfer, the /usr/local/etc/ezjail/jailname file and modify it as required for the new host. Alternatively, given one uses zfs with ezjail then one can also snapshot and transfer the base and the configuration files. Again followed by local customisation of the /usr/local/etc/ezjail/jailname file on the target system. This was originally the path i thought to follow. However, for me the ezjail-admin archive and create options proved to be much simpler to use. -- *** e-Mail is NOT a SECURE channel *** Do NOT transmit sensitive data via e-Mail Do NOT open attachments nor follow links sent by e-Mail James B. Byrne mailto:ByrneJB@Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3