mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-19 16:51:00 +01:00
docs: Clean up migration chapter
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
=========
|
||||||
|
Migration
|
||||||
|
=========
|
||||||
|
|
||||||
|
iocage
|
||||||
|
------
|
||||||
|
|
||||||
Stop the running jail and export it:
|
Stop the running jail and export it:
|
||||||
|
|
||||||
.. code-block:: shell
|
.. 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/
|
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
|
.. code-block:: shell
|
||||||
|
|
||||||
@@ -24,13 +31,11 @@ Import the iocage backup file (use zip file name)
|
|||||||
|
|
||||||
bastille import jailname_$(date +%F).zip
|
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
|
.. code-block:: shell
|
||||||
|
|
||||||
vim /usr/local/bastille/jails/jailname/jail.conf
|
bastille edit jailname
|
||||||
interface = bastille0;
|
ip4.addr = bastille0|192.168.0.1/24;
|
||||||
ip4.addr = "192.168.0.1";
|
|
||||||
|
|
||||||
|
You can use your primary network interface instead of the virtual bastille0 interface as well if you know what you’re doing.
|
||||||
You can use you primary network interface instead of the virtual bastille0 interface as well if you know what you’re doing.
|
|
||||||
|
|||||||
Reference in New Issue
Block a user