From 5e53903531b2c3958e05233785082228ec8f5940 Mon Sep 17 00:00:00 2001 From: tschettervictor Date: Tue, 7 Oct 2025 11:29:58 -0600 Subject: [PATCH] docs: migrate: update for -k --- docs/chapters/subcommands/migrate.rst | 18 ++++++++++-------- usr/local/share/bastille/migrate.sh | 16 ++++++++-------- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/docs/chapters/subcommands/migrate.rst b/docs/chapters/subcommands/migrate.rst index c68d8497..f38e8bd3 100644 --- a/docs/chapters/subcommands/migrate.rst +++ b/docs/chapters/subcommands/migrate.rst @@ -1,7 +1,7 @@ migrate ======= -The ``migrate`` sub-command allows migrating the targeted jail(s) to +The ``migrate`` sub-command allows migrating the targeted jail(s) to another remote system. See the chapter on Migration. This sub-command supports multiple targets. @@ -18,13 +18,15 @@ port by supplying it as in ``user@host:port``. bastille migrate attica migrate@192.168.10.100 bastille migrate attica migrate@192.168.1.10:20022 + bastille migrate --keyfile id_rsa attica migrate@192.168.1.10 Options: - -a | --auto Auto mode. Start/stop jail(s) if required. - -d | --destroy Destroy local jail after migration. - -b | --backup Retain archives on remote system. - | --doas Use 'doas' instead of 'sudo'. - -l | --live Migrate a running jail (ZFS only). - -p | --password Use password based authentication. - -x | --debug Enable debug mode. \ No newline at end of file + -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. \ No newline at end of file diff --git a/usr/local/share/bastille/migrate.sh b/usr/local/share/bastille/migrate.sh index aaa44856..54e2e007 100644 --- a/usr/local/share/bastille/migrate.sh +++ b/usr/local/share/bastille/migrate.sh @@ -44,14 +44,14 @@ usage() { Options: - -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. + -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. EOF exit 1