mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-16 07:15:49 +01:00
40 lines
1.5 KiB
ReStructuredText
40 lines
1.5 KiB
ReStructuredText
export
|
|
======
|
|
|
|
Exporting a container creates an archive or image that can be sent to a
|
|
different machine to be imported later. These exported archives can be used as
|
|
container backups.
|
|
|
|
.. code-block:: shell
|
|
|
|
ishmael ~ # bastille export azkaban
|
|
|
|
The export sub-command supports both UFS and ZFS storage. ZFS based containers
|
|
will use ZFS snapshots. UFS based containers will use ``txz`` archives and they
|
|
can be exported only when the jail is not running.
|
|
|
|
.. code-block:: shell
|
|
|
|
Usage: bastille export [option(s)] TARGET PATH
|
|
|
|
Available options are:
|
|
|
|
.. code-block:: shell
|
|
|
|
ishmael ~ # bastille export help
|
|
Usage: bastille export [option(s)] TARGET PATH
|
|
|
|
Options:
|
|
|
|
-a | --auto Auto mode. Start/stop jail(s) if required.
|
|
--gz Export a ZFS jail using GZIP(.gz) compressed image.
|
|
-r | --raw Export a ZFS jail to an uncompressed RAW image.
|
|
-s | --safe Safely stop and start a ZFS jail before the exporting process.
|
|
--tgz Export a jail using simple .tgz compressed archive instead.
|
|
--txz Export a jail using simple .txz compressed archive instead.
|
|
-v | --verbose Be more verbose during the ZFS send operation.
|
|
--xz Export a ZFS jail using XZ(.xz) compressed image.
|
|
-x | --debug Enable debug mode.
|
|
|
|
Note: If no export option specified, the container should be redirected to standard output.
|