===============
sampo_ps export
===============

.. contents:: Contents
    :local:

Overview
========

.. warning::

   sampo_ps export command is deprecated.

**sampo_ps export** exports a stored data in a ProcessStore.
The exported data can be imported to any ProcessStore with **sampo_ps import** command.
Since this command can export only successful processes, data which failed or are in-progress are skipped.

|

Synopsis
========
See sampo_ps command help::

    $ sampo_ps export --help

|

Examples
========
You can export all or parts of data in a ProcessStore by **sampo_ps export**.

* Exporting the data in a process.

  All the data in the process **fabhmerg_predict** are exported.

  * Command
    ::

      $ sampo_ps export -s file:///var/process_store_storage -p fabhmerg_predict -o output_dir/

  * Output
    ::

      output_dir
      └── fabhmerg_predict.0d3609dc-f53e-4f94-9d62-d99dd71f0bc1
          ├── ...
          .
          .
          .

|

* Exporting all the data in a ProcessStore.

  All the process data in the ProcessStore **process_store_storage** are exported.

  * Command::

      $ sampo_ps export -s file:///var/process_store_storage -o output_dir/

  * Output::

      output_dir
      ├── processA.0d3609dc-f53e-4f94-9d62-d99dd71f0bc1
      │   ├── ...
      ├── processB.27a210b2-230d-4e0f-bd57-9badb7a29253
      │   ├── ...
      .
      .
      .

|

* Exporting process data without component output data.

  The output data of each component can be excluded in export by adding ``--truncate-comp-output``.

  * Command::

      $ sampo_ps export -s file:///var/process_store_storage -o output_dir/ --truncate-comp-output

  * Output

    The exported data structure is the same as the case without the option ``--truncate-comp-output``.
