Copy FireFlow customizations

AlgoSec FireFlow includes a copy customizations utility that can be used to copy user customizations between sites. This section explains how to use this utility and the elements that are copied.

Copied files

The utility copies the following items:

Create a customization file to copy

In order to copy customizations from the original site to a target site, you must create a customizations file using the following procedure.

Do the following:

  1. On the original site, open a terminal and log in using the username "root" and the related password.

  2. Enter the following command:

    /usr/share/fireflow/local/sbin/copy_fireflow_customization.pl --run -d -fCustFile [-e]

    For more details, see Customization Utility Flags.

    A customizations file is created containing the data described in Copied files, and saved to the current directory.

Customization Utility Flags

Flag

Description

-f CustFile

The name under which to save the customizations file.

The default value is user_customizations_yyyy-mm-dd-hhmmss.tar.gz, where yyyy-mm-dd-hhmmss is a timestamp. For example: user_customizations_2010-09-07-091318.tar.gz

-u

Update existing elements on the target site with data from the customizations file.

If this flag is not used, only new elements will be added.

Note: This option is available when -l is used.

-r

Database entities that exist in the target customization file but not in the source customization file are set to Disabled.

For example, Source customization file has templates A, B, C, D, and the target customization file has templates B, C, D, E. Template E will be disabled.

Note: This option is available when -l is used.

-d Dump customization to file
Note: -d and -l are mutually exclusive.
-l

Load customization from file

Note: -d and -l are mutually exclusive.

-e Do not include disabled roles and disabled custom fields in the customizations file.
-x Skip backup

Load a customizations file to the Target Site

Once you have created a customizations file, you can load it to the target site.

After running copy_fireflow_customization.pl -l to load the customization, the workflow files that were loaded need to enter the VisualFlow internal database, discarding any information that was already there.

Do the following:

  1. On the target site, open a terminal and log in using the username "root" and the related password.

    Note: The "root" user must have read permissions for the customizations file; otherwise, loading the file will fail.

  2. Enter the following command:

    /usr/share/fireflow/local/sbin/copy_fireflow_customization.pl --run -l -f CustFile [-u] [-r]

    For more details, see Customizations Utility Flags.

    The fireflow_backup utility runs and backs up FireFlow to the directory /var/fireflow/backup.

    Apache Web service and FireFlow workers both stop.

    The customizations file is loaded to the target site. Data is overwritten and/or added as described in Copied files.

    Apache Web service restarts.

    FireFlow workers start automatically every 5 minutes, as configured on the server’s cron.

  3. Refresh the workflows, by doing the following:

    1. Access VisualFlow. For details, see Get started in VisualFlow.
    2. In the VisualFlow main menu, click Apply Workflow Changes.

      The Apply Changes page is displayed.

    3. To delete all workflow drafts, in the Discard changes to workflows section, click Discard all changes.

      A confirmation message appears.

    4. Click OK.

    5. Click Refresh Workflows.

The workflows are loaded into FireFlow.

Customizations Utility Flags

Flag

Description

-f CustFile

The name of the customizations file to load.

Note: The file must be located in the current directory.

-u

Update existing elements on the target site with data from the customizations file.

If this flag is not used, only new elements will be added.

-r

Database entities that exist in the target customization file but not in the source customization file are set to Disabled.