How-to migrate your FreeBSD jails from iocage to bastille
Stop the running jail and export it:
iocage stop jailname
iocage export jailname
Move the backup files (.zip and .sha256) into Bastille backup dir (default: /usr/local/bastille/backups/):
mv /iocage/images/jailname_2020-03-26.* /usr/local/bastille/backups/
for remote systems you could use rsync:
rsync -avh /iocage/images/jailname_2020-03-26.* [email protected]:/usr/local/bastille/backups/
Import the iocage backup file (use zip file name)
bastille import jailname_2020-03-26.zip
```</pr```e>
Set your new ip address and interface:
vim /usr/local/bastille/jails/jailname/jail.conf
interface = bastille0;
ip4.addr = "192.168.0.1";
You can use you primary network interface instead of the virtual bastille0 interface as well if you know what you’re doing.