Backup and restore

Backup and restore

OMFLOW's backup and restore is divided into Windows and Linux. The steps are basically the same, but different environments are not interchangeable with each other.

Windows

OMFLOW Server

Backup steps

  1. Stop serving OMFLOW Server and OMFLOW Server Web

  2. Backup folder C:\Program Files\OMFLOW Server

  3. Dump the database OMFLOW dedicated DB

Restore steps

  1. First restore the dumped DB

  2. Install OMFLOW Server, refer to the chapter [Installation on Windows]

Notes:

  • When installing, select the "Don't use database" option

  • Update to the same version as the backup

  1. Close the following services

List: -OMFLOW Server

  • OMFLOW Server Web

  1. Delete the following folders after installation

...\OMFLOW Server\omflow\omcustom\migrations ...\OMFLOW Server\omflow\omdashboard\migrations ...\OMFLOW Server\omflow\omflow\migrations ...\OMFLOW Server\omflow\omformflow\production ...\OMFLOW Server\omflow\omformflow\migrations ...\OMFLOW Server\omflow\omformmodel\migrations ...\OMFLOW Server\omflow\omldap\migrations ...\OMFLOW Server\omflow\ommessage\migrations ...\OMFLOW Server\omflow\ommission\migrations ...\OMFLOW Server\omflow\ommobile\migrations ...\OMFLOW Server\omflow\ommonitor\migrations ...\OMFLOW Server\omflow\omorganization\migrations ...\OMFLOW Server\omflow\omformflow\migrations ...\OMFLOW Server\omflow\ompolicymodel\migrations ...\OMFLOW Server\omflow\omreport\migrations ...\OMFLOW Server\omflow\omservice\migrations ...\OMFLOW Server\omflow\omuser\migrations

  1. Overwrite all backed up files

  2. Modify...\OMFLOW Server\omflow\omflow\setting.py according to the new environment

Project:

  • DATABASES: Ensure that the IP, Port and other related parameters of the new DB are correct

  • LOCAL_IP: OMFLOW’s connecting IP, 0.0.0.0 is any IP

  • LOCAL_PORT: OMFLOW’s connection port

  • LOCAL_PROTOCOL: OMFLOW's SSL settings, choose one of http / https

  1. Restart the OMFLOW Server service

OMFLOW Collector

Backup steps

  1. Stop serving OMFLOW Collector and OMFLOW Collector Web

  2. Backup folder C:\Program Files\OMFLOW Collector

Restore steps

  1. Install OMFLOW Collector, refer to the chapter [Installation on Windows]

Notes:

  • Update to the same version as the backup

  1. Close the following services

List:

  • OMFLOW Collector

  • OMFLOW Collector Web

  1. Delete the following folders after installation

...\OMFLOW Collector\omflow\omcustom\migrations ...\OMFLOW Collector\omflow\omdashboard\migrations ...\OMFLOW Collector\omflow\omflow\migrations ...\OMFLOW Collector\omflow\omformflow\production ...\OMFLOW Collector\omflow\omformflow\migrations ...\OMFLOW Collector\omflow\omformmodel\migrations ...\OMFLOW Collector\omflow\omldap\migrations ...\OMFLOW Collector\omflow\ommessage\migrations ...\OMFLOW Collector\omflow\ommission\migrations ...\OMFLOW Collector\omflow\ommobile\migrations ...\OMFLOW Collector\omflow\ommonitor\migrations ...\OMFLOW Collector\omflow\omorganization\migrations ...\OMFLOW Collector\omflow\omformflow\migrations ...\OMFLOW Collector\omflow\ompolicymodel\migrations ...\OMFLOW Collector\omflow\omreport\migrations ...\OMFLOW Collector\omflow\omservice\migrations ...\OMFLOW Collector\omflow\omuser\migrations

  1. Overwrite all backed up files

  2. Modify ...\OMFLOW Collector\omflow\omflow\setting.py according to the new environment

Project:

  • LOCAL_IP: OMFLOW Collector’s connecting IP, 0.0.0.0 is any IP

  • LOCAL_PORT: OMFLOW Collector’s connection port

  1. Restart the OMFLOW Collector service

Linux

OMFLOW Server

Backup steps

  1. Stop the service /opt/omflow/server/omflow_server stop

  2. Backup folder/opt/omflow

  3. Dump the database OMFLOW dedicated DB

Restore steps

  1. First restore the dumped DB

  2. Install OMFLOW Server, refer to the chapter [Installation on Linux]

Notes:

  • When installing, select the "SQLite" option

  • Update to the same version as the backup

  1. Close the following services

/opt/omflow/server/omflow_server stop
  1. Delete the following folders after installation

/opt/omflow/server/omcustom/migrations /opt/omflow/server/omdashboard/migrations /opt/omflow/server/omflow/migrations /opt/omflow/server/omformflow/productions /opt/omflow/server/omformflow/migrations /opt/omflow/server/omformmodel/migrations /opt/omflow/server/omldap/migrations /opt/omflow/server/ommessage/migrations /opt/omflow/server/ommission/migrations /opt/omflow/server/ommobile/migrations /opt/omflow/server/ommonitor/migrations /opt/omflow/server/omorganization/migrations /opt/omflow/server/omformflow/migrations /opt/omflow/server/ompolicymodel/migrations /opt/omflow/server/omreport/migrations /opt/omflow/server/omservice/migrations /opt/omflow/server/omuser/migrations

  1. Overwrite all backed up files

  2. Modify /opt/omflow/server/omflow/setting.py according to the new environment

Project:

  • DATABASES: Ensure that the IP, Port and other related parameters of the new DB are correct

  • LOCAL_IP: OMFLOW’s connecting IP, 0.0.0.0 is any IP

  • LOCAL_PORT: OMFLOW’s connection port

  • LOCAL_PROTOCOL: OMFLOW's SSL settings, choose one of http / https

  1. Restart the service

/opt/omflow/server/omflow_server start

OMFLOW Collector

Backup steps

  1. Stop the service/opt/omflow/collector/omflow_collector stop

  2. Backup folder/opt/omflow

Restore steps

  1. Install OMFLOW Collector, refer to the chapter [Installation on Linux]

Notes:

  • Update to the same version as the backup

  1. Close the following services

/opt/omflow/server/omflow_collector stop
  1. Delete the following folders after installation

/opt/omflow/collector/omcustom/migrations /opt/omflow/collector/omdashboard/migrations /opt/omflow/collector/omflow/migrations /opt/omflow/collector/omformflow/productions /opt/omflow/collector/omformflow/migrations /opt/omflow/collector/omformmodel/migrations /opt/omflow/collector/omldap/migrations /opt/omflow/collector/ommessage/migrations /opt/omflow/collector/ommission/migrations /opt/omflow/collector/ommobile/migrations /opt/omflow/collector/ommonitor/migrations /opt/omflow/collector/omorganization/migrations /opt/omflow/collector/omformflow/migrations /opt/omflow/collector/ompolicymodel/migrations /opt/omflow/collector/omreport/migrations /opt/omflow/collector/omservice/migrations /opt/omflow/collector/omuser/migrations

  1. Overwrite all backed up files

  2. Modify /opt/omflow/collector/omflow/setting.py according to the new environment

Project:

  • LOCAL_IP: OMFLOW Collector’s connecting IP, 0.0.0.0 is any IP

  • LOCAL_PORT: OMFLOW Collector’s connection port

  1. Restart the service

/opt/omflow/server/omflow_collector start

Last updated