docs: Clean up migration chapter

This commit is contained in:
tschettervictor
2025-03-01 11:55:36 -07:00
committed by GitHub
parent ba6d2fbd10
commit 82f1648f6b

View File

@@ -1,3 +1,10 @@
=========
Migration
=========
iocage
------
Stop the running jail and export it:
.. code-block:: shell
@@ -11,7 +18,7 @@ Move the backup files (.zip and .sha256) into Bastille backup dir (default: /usr
mv /iocage/images/jailname_$(date +%F).* /usr/local/bastille/backups/
for remote systems you could use rsync:
for remote systems you can use rsync:
.. code-block:: shell
@@ -24,13 +31,11 @@ Import the iocage backup file (use zip file name)
bastille import jailname_$(date +%F).zip
Set your new ip address and interface:
Bastille will attempt to configure your interface and IP from the config.json file, but if you have issues you can configure it manully.
.. code-block:: shell
vim /usr/local/bastille/jails/jailname/jail.conf
interface = bastille0;
ip4.addr = "192.168.0.1";
bastille edit jailname
ip4.addr = bastille0|192.168.0.1/24;
You can use you primary network interface instead of the virtual bastille0 interface as well if you know what youre doing.
You can use your primary network interface instead of the virtual bastille0 interface as well if you know what youre doing.