Appearance
systemslab export context
Description | Export a SystemsLab context to a tar file. |
---|---|
Usage | systemslab export context [OPTIONS] <CONTEXT> |
Description
The systemslab export context
command exports a context to a tar file. This tar file can then be used with systemslab import context
to import the context. This can be used to move entire contexts between SystemsLab servers.
TIP
systemslab export context
is not able to generate a compressed tar file on its own. You can generate a compressed tar file by piping the output through a compressor like so
bash
systemslab export context 018ec8ab-1cb6-70c8-3a29-6f41445ee0c4 | gzip -9 > context.tar.gz
Options
Option | Default | Description |
---|---|---|
<CONTEXT> | The ID of the context to be exported. | |
-o, --output | - | The path at which to produce the output tar file. Can be - to output to stdout. |
-j, --parallel | 1 | Number of requests allowed to be made in parallel. Passing 0 will make this use the number of CPUs on the current machine. |
Common Options
Option | Default | Description |
---|---|---|
--systemslab-url | The URL at which to access the systemslab server. | |
--color | auto | Controls when color is used in the output. Possible values are auto , always , and never . |
--output-format | long | Output format to use when outputting messages. long will result output designed to be human-readable while short is short output meant to be used within scripts. |
Environment Variables
Variable | Description |
---|---|
SYSTEMSLAB_URL | Specify the URL used to contact the SystemsLab server. Equivalent to --systemslab-url . |