Date: Wed, 12 Jul 2017 12:44:51 -0400 From: "James B. Byrne" <byrnejb@harte-lyne.ca> To: "Ben Woods" <woodsb02@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: A readers digest version of transferring a jail from one host to another. Message-ID: <fbf23c482da0772e7b714a19501bfc1f.squirrel@webmail.harte-lyne.ca> In-Reply-To: <CAOc73CAuiAdDmgbi3tgzd2o0WZHpPE4sF2sMi3%2BQC=Xpa8c4mA@mail.gmail.com> References: <772bdab1906a8a3deea24fb6b246e40e.squirrel@webmail.harte-lyne.ca> <CAOc73CAuiAdDmgbi3tgzd2o0WZHpPE4sF2sMi3%2BQC=Xpa8c4mA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, June 30, 2017 19:37, Ben Woods wrote: > Hi James, > > With ezjail the easiest way to take a copy of a jail and move it to > another host is with the build in archive/restore process. > > Old server: > # ezjail-admin stop jailname > # ezjail-admin archive jailname > > <Then copy the archive file to new server (same directory). By > default it will be in /usr/jails/ezjail_archives.> > > New server: > # ezjail-admin restore archivefilename > # ezjail-admin start jailname > > For more details and optional arguements to these commands you can > refer to the manpage: > http://man.freebsd.org/ezjail-admin > > Regards, > Ben Thank you for the advice. It was most useful now that I have finally gotten to use it. I did mention that I was pressed for time. I simply did not realize just how pressed I would be. After creating and transferring the archives to the target host what I ended up doing was a variant of this command: ezjail-admin create \ -a /usr/jails/ezjail_archives/hllmx18-201707041251.23.tar.gz \ hllmx150 'lo1|127.0.150.1,lo1|::150:1,re0|192.168.209.150' Which produced exactly the result I sought. Thanks again. -- *** 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?fbf23c482da0772e7b714a19501bfc1f.squirrel>