Files
BastilleBSD_bastille/docs/chapters/subcommands/migrate.rst

32 lines
1.1 KiB
ReStructuredText
Raw Normal View History

2025-05-05 17:44:59 -06:00
migrate
=======
2025-10-07 11:29:58 -06:00
The ``migrate`` sub-command allows migrating the targeted jail(s) to
2025-05-05 17:44:59 -06:00
another remote system. See the chapter on Migration.
This sub-command supports multiple targets.
Syntax for the remote system is ``user@host``. You can also specify a non-default
port by supplying it as in ``user@host:port``.
2025-05-05 17:44:59 -06:00
.. code-block:: shell
ishmael ~ # bastille migrate help
Usage: bastille migrate [option(s)] TARGET USER@HOST[:PORT]
2025-09-23 18:51:04 +02:00
2025-05-18 17:16:17 -06:00
Examples:
2025-05-18 17:16:17 -06:00
bastille migrate attica migrate@192.168.10.100
bastille migrate attica migrate@192.168.1.10:20022
2025-10-07 11:29:58 -06:00
bastille migrate --keyfile id_rsa attica migrate@192.168.1.10
2025-05-05 17:44:59 -06:00
2025-05-18 17:16:17 -06:00
Options:
2025-05-05 17:44:59 -06:00
2025-10-07 11:29:58 -06:00
-a | --auto Auto mode. Start/stop jail(s) if required.
-b | --backup Retain archives on remote system.
-d | --destroy Destroy local jail after migration.
| --doas Use 'doas' instead of 'sudo'.
-k | --keyfile Specify an alternative private keyfile name. Must be in '~/.ssh'
-l | --live Migrate a running jail (ZFS only).
-p | --password Use password based authentication.
-x | --debug Enable debug mode.