FME Flow Administration: Backup, Migrations and Upgrades

Merline George
Merline George
  • Updated

Introduction

Performing backups and migrations is a common task for an FME Flow system administrator. A backup is carried out using the tools on the “Backup & Restore” page of the FME Flow web interface. A migration is achieved by performing a backup and then restoring the backup on a different system or the same system post a version upgrade.

Backing up and Restoring FME Flow

The backup and restore process is an important part of FME Flow upgrades. By backing up your current server and restoring the configurations and settings to the new version, you can keep your test and production environments in sync and allow a quick restoration after an upgrade. 

FME Flow also provides a workspace that you can configure to perform regular (scheduled) backups of your server configuration to an FME Flow configuration (.fsconfig) file. You can choose to schedule a backup of your server configuration for the time range that works best for you and your organization. The time ranges from every second to every year. You can view the backup and restore operations history under the “History” tab of the “Backup & Restore” section. 

It is highly recommended that you first verify the server backup file by installing a new instance of FME Flow before uninstalling the current FME Flow. Once you uninstall, you cannot restore the setup unless you regularly back up your entire file system. If you're upgrading on the same machine, you won't be able to test this, as you cannot install multiple versions of FME Flow on the same machine. However, in such cases, we recommend you validate the backup file by -

  • Performing a restore on the current system using a recent .fsconfig backup file 
  • Navigating to the History” tab of the “Backup & Restore” section and confirming a successful configuration restore

If encryption is enabled on the backed-up FME Flow, it must also be enabled on the restored FME Flow and use the same custom encryption key. Please ensure you have downloaded and safely saved your custom encryption key.  As of FME Flow 2023.1, encryption is enabled by default, so download the encryption key before creating any backups to ensure you can restore the backup on a new installation.

Advanced Tips and Tricks 

  • Resource folders generally contain large amounts of data that take considerable time to back up, resulting in large configuration files. It is recommended that you define large folders as non-migratable. Resources whose definitions and files are stored with FME Flow are configured for migration. The DATA, ENGINE, and DASHBOARD Resources are configured for migration by default. To determine if your resource folders are migratable, open the fmeFlowConfig.txt (formerly fmeServerConfig.txt) configuration file. Locate your resources under Shared Resource Management. Resources with a SHAREDRESOURCE_ISMIGRATABLE_* value of true are migrated. Following backup and restore, manually migrate these folders to the new FME Flow. Alternatively, you can host big data on a remote file share and point the new FME Flow to that path via a UNC path.
  • Any messaging to or from Automations triggers or external actions or Notification Service topics is disabled during the restore operation. This prevents the restore operation from triggering unintended notifications from any actively configured triggers or publications.

Which FME Flow Configuration Components are in a Backup?

Please see the full list of FME Flow components recorded in a backup and that can be migrated to a new Flow installation.

The following components of your FME Flow are not migrated:

  • Core and Job Logs: Core and Job logs cannot be migrated and must be manually backed up. If you want to back up the entire logs folder, you can find it on your file system inside the resources folder of the FME Flow System Share [Express Install default location is C:\ProgramData\Safe Software\FME Flow\resources\logs].
  • Job ID: As with Job Logs, the Job ID is not migrated between Flow instances. Job ID will start again from 0 on a new install.
  • Version Control: If the FME Flow you are backing up has Version Control enabled, the versioning information will not be migrated. If Versioning is important, ensure you keep this information in a Remote Repository like GitHub.If Version Control was enabled on the backed-up configuration and configured with a remote Git repository, the restored server does not automatically synchronize with the repository. The restored server does not automatically perform a “Fetch From Remote” operation. To avoid errors, fetch updates from the repository before pushing updates to it.
  • Configuration Files: Any changes to FME Flow made through configuration files, such as HTTPS/SSL, will not be migrated.

Backup Configuration Files

Before proceeding with the primary task of backing up your FME Flow through the web interface, we recommend manually copying FME Flow Configuration Files to a location outside your FME Flow installation directory for reference, if required. The files to copy over will also depend on the level of customization of your FME Flow installation. These files contain configurations for the FME Flow Database, HTTPS, and other miscellaneous settings for the Transformation and Repository Managers. These configurations are not included in the primary backup procedure. 

To restore any changes/customizations made in these config files, compare the old and new configuration files and update the new file as you go, using line comments to track specific changes. 

Please note that when restoring manually backed-up FME Flow configuration files, do not replace or overwrite the files in the new installation; instead, go through each configuration file. The FME Flow directory structure, configuration file structure, and parameters may change between releases. 

In addition to this list of configuration files, please back up the following files - 

  • <FMEFlowDir>\Server\config\<subscribers_or_publishers>\websocket.properties used to configure the FME Flow WebSocket server.
  • <FMEFlowDir>\Utilities\pgsql\data\pg_hba.conf is used to open the database connections for Express Install.
  • <FMEFlowDir>\Utilities\tomcat\conf\server.xml is used to configure the web application server port and connector protocols.
  • <FMEFlowDir>\Utilities\tomcat\conf\web.xml is used to configure international encodings.
  • <FMEFlowDir>\Utilities\tomcat\conf\context.xml is used to configure the FME Flow web application.

Upgrading FME Flow

Full FME Flow Upgrade

There are multiple approaches to upgrading your complete FME Flow installation, each with its own advantages and disadvantages. Please read the documentation to decide which scenario listed below is right for you.

FME Engine Only Upgrade

FME Engines are the component of FME Flow that perform the actual data translations and transformations. There may be instances where you want to upgrade only your FME Engines and not other FME Flow components.  Please see the documentation for more information about FME Engine Only Upgrade. 

FME Flow Projects

You can use the Projects page to bring together FME Flow items into groups that share a common solution, or 'project,' in your organization. By grouping items in projects, you can reference them as one easy object. A project may then be exported and subsequently imported to either the same or another instance of FME Flow.

The primary benefit of projects is the ability to migrate them between FME Flow servers, especially when deploying an FME Flow scenario through the enterprise life cycle, from development to testing/staging to production. Instead of backing up and restoring an entire FME Flow configuration, you can create and export the project, then import it into another FME Flow. The target server configuration remains intact, with the new project and all its contents added.

What Can a Project Hold?

A project can include most FME Flow objects you create or upload. Please see the full list of FME Flow objects.

Creating a Project

You can create a project under the “Projects” > ”Create Project” section.  Please see the detailed steps to create a project. When the user account creating a project –

  • Has the fmesuperuser role- 
    • They can add any FME object on the server, including any published workspace, any automation, any user, and any user's API token, to a project. 
    • To add users explicitly to a project, you must belong to the fmesuperuser role.
  • Does not have a fmesuperuser role but they published/created/owned the FME object or the FME object has been shared with them - 
    • They will be able to add any FME object on the server that has been published/created/owned by or shared with the user. 
    • They will not be able to add any users. If you are not a superuser, only your own user account can be added ( implicitly) to the project file. 
    • They will only be able to add their own API token. Please note that users with the “fmeadmin” role will be able to view/add other users’ tokens to a project [users with the “fmeauthor” role will not be able to do this]. However, they will get the error “Exporting user token for user account requires the fmesuperuser role” if they try to save the project with another user’s API token. At this point, you can choose to “Save Anyway”. However, the user who created the project will not be able to export it and will see the error message “Selected project cannot be exported until the reported issues are resolved.”

Adding Resource folders includes the folder and all of its contents. API tokens owned by users are not included in projects unless they are explicitly added.

If the project contains any automations, schedules, or server apps, FME Flow checks if any items required for these components to run, such as workspaces, are also included in the project. 

If not included, the “Add Dependencies” dialog appears. To review, expand the drop-down beside the component with missing dependencies. By default, any dependencies will be added to the project unless you clear their respective checkboxes. To proceed with adding dependencies to the project as marked, click “Add Dependencies”. To proceed without adding any dependencies to the project, click “Skip”.

Advanced Tips and Tricks

The dependency check that FME Flow performs on projects is not comprehensive. FME Flow checks for the following dependencies:

  • Automations: topics, workspaces, resources, resource connections. 
  • Must be included manually: database connections, web connections, packages 
  • Schedules: topics, workspaces
  • Flow apps: workspaces, database connections, web connections, resource connections, tokens, users that own the associated tokens

Ensure that any other dependencies are included in your project and, if necessary, add them later.

Exporting and Importing a Project

You can export the contents of FME Flow Projects and import them into the same instance or another instance. Please note that the FME Flow you are importing the project to must be the same build as, or newer than, the FME Flow exported from. You can view project import/export under the “History” tab under the “Projects” section. For more information, see Exporting and Importing Projects.

When the user account is exporting and importing a project –

  • Has the fmesuperuser role-
    • They can export and import any FME object on the server, including any published workspace, any automation, any user, and any user's API token, to a project.
    • Users added to the project are created in the new FME Flow if they do not exist. The associated tokens [if they were added to the project] are also created. The same permissions the user has on the current system apply to the system where the project is imported, but only to items in the project. Any other permissions the user has on the current system do not carry over. 
    • The user importing the project becomes the owner of any items in the project if the project does not include the user accounts of the original owners.
  • Does not have the fmesuperuser role, and the user exporting and importing the project are both different, since the user importing the project into the new instance does not exist in the old server instance.
    • The project import will fail with the error message “Unable to import project with user due to the following issues: Does not have permission” to add/update user account, user role, API token, or to publish to the repository, which requires the fmesuperuser role. The user importing the project is expected to own all FME objects being imported.  
  • Does not have the fmesuperuser role, and the user exporting and importing the project are the same, i.e the user importing the project into the new instance also exists in the old server instance. 
    • The project import will be successful if the user importing the project is the owner of all the FME objects being imported. 


If a project contains Flow Apps without their associated API tokens, those apps are disabled on the target system until explicitly enabled.

The user who performs the import becomes the owner of any items in the project if the project does not include the user accounts of the original owners or if those user accounts do not exist on the target server. If the project contains any items of the same name on the system to which the project is imported, and the user performing the import does not own those items, the import fails.

You may want to update the project version before you export it. The specified version is appended to the .fsproject file that is exported.

Importing a project triggers only the “Project Import” system event, if enabled. However, if a new repository is created in FME Flow as a result of importing a project, the “Repository Create” event is not triggered.

Migrating Projects for Other Users (fmesuperuser only)

When you include users in a project, you can back up and restore the project so those users can work with it on another system. Any permissions a user has on the current system are granted on the system to which the project is restored if both of the following conditions are true:

  • The permission is on an item in the project.
  • The permission was granted to the user directly rather than through membership in a role.

Any other permissions a user has on the current system do not carry over.

Viewing and Editing Projects

To view or edit a project, click on it to open the Edit page. Alternatively, select the project and click Edit. You can:

  • Edit the project name and description.
  • Add and remove items.
  • Get information about items
    • Select an item under Contents and click the information icon to the far right for item details.

Sharing Projects

To share a project, click the Share with Others icon. Through sharing, you can grant permission levels on an item to other users. You can share an item if you own it or have Manage permission in Security, such as an administrator. For more information about sharing and ownership, see Role-Based and User-Based Access Control.

Removing Projects

If a project changes after it is exported but before it is imported back into the same system, you may want to revert it to its original state so it matches the exported version. For more information, see Removing Projects.

Projects and FME Hub

FME Flow Projects are now available on FME Hub.

You can download a project from FME Hub and import it into your FME Flow, or export and upload a project to FME Hub to share.

Upload a project to FME Hub using the correct FME Hub details listed below. This option can be accessed by expanding the FME Hub (Optional) dialog box when editing a project.

  • FME Hub Publisher ID: When you publish to FME Hub, you will do so under a publisher. Enter the publisher value here.
  • FME Hub Project ID: This is a unique identifier for the project.
  • Project Icon: This icon will be used on the FME Hub when the project is listed.

What's Next? 

After FME Flow is configured and backups are planned, you can start adding users to your FME Flow. For further guidance, see FME Flow Administration: User Administration.

Was this article helpful?

We're sorry to hear that.

Please tell us why.