Date: Thu, 13 Jul 2017 09:02:58 -0400 From: "James B. Byrne" <byrnejb@harte-lyne.ca> To: "Kaya Saman" <kayasaman@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: A readers digest version of transferring a jail from one host to another. Message-ID: <a5fafc6e52d1d6b76c6b634a2ff7f0b2.squirrel@webmail.harte-lyne.ca> In-Reply-To: <mailman.112.1499947203.26927.freebsd-questions@freebsd.org> References: <mailman.112.1499947203.26927.freebsd-questions@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <jail_name> > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a5fafc6e52d1d6b76c6b634a2ff7f0b2.squirrel>