Skip to main content

Common options

Common option for all fl commands:

Command line option

Environment variable

Description

-h
--help

FLEXIFY_ENGINE_HELP

Show help and exit.

-v
--version

FLEXIFY_ENGINE_VERSION

Display version and exit.

-c
--console-log

FLEXIFY_ENGINE_CONSOLE_LOG

Print all logs to terminal instead of log files. If specified, all logs will be saved to console instead of the logs directory.

-b
--background

Run in daemon mode (in background)

-s
--stop

❓ (optional) Perform a specified action with the flexify-engine process running in a daemon mode (stop / kill / status / state / restart).

PIDFILE

(optional) File path of the PID file that is created if -b option is used.

Default is ./engine.pid.

STATE_DIRECTORY

Path to store persistent state files and reports (depending on the mode).

--log-level

FLEXIFY_ENGINE_LOG_LEVEL

(optional) Logging level (ERROR / WARNING, / INFO / DEBUG / TRACE).

Default is INFO.

--max-logs-size-mb

FLEXIFY_ENGINE_MAX_LOGS_SIZE_MB

(optional) Maximum total size of all engine logs in MiB. When the limit is exceeded older engine log files are automatically deleted.

Default is 50% from available disk space.

--logs-directory

LOGS_DIRECTORY

(optional) Directory to store log files. No logs are stored if not defined.

Default is undefined (do not save log)

--log-file-chunk-size

FLEXIFY_ENGINE_LOG_FILE_CHUNK_SIZE

(optional) Maximum size of a single log file in logs directory (in bytes, or valueK, valueM, valueG, valueT, cannot be less than 1 MiB). Default: 32M

--migration-report-directory

FLEXIFY_ENGINE_MIGRATION_REPORT_DIRECTORY

(optional) The path of the directory where migration reports will be stored.

Default is ./migration_reports/ or $STATE_DIRECTORY/migration_reports.

--proxy-report-directory

FLEXIFY_ENGINE_PROXY_REPORT_DIRECTORY

Directory to save proxy report (AKA audit log) to.

Default is ./proxy_reports/ or $STATE_DIRECTORY/proxy_reports.

--report-cleanup-after

FLEXIFY_ENGINE_REPORT_CLEANUP_AFTER

Duration (in hours) reports will be automatically deleted even if they are not uploaded to a cloud yet.

0 disabled automatic deletion of old reports. Default is 24 hours.

Only locally stored reports are cleaned up. To clean up reports uploaded to a cloud configure cloud’s lifecycle rules.

--report-cloud
--report-cloud-key-id
--report-cloud-secret-key
--report-cloud-bucket
--report-cloud-prefix
--report-cloud-no-ssl

FLEXIFY_ENGINE_REPORT_CLOUD
FLEXIFY_ENGINE_REPORT_CLOUD_KEY_ID
FLEXIFY_ENGINE_REPORT_CLOUD_SECRET_KEY
FLEXIFY_ENGINE_REPORT_CLOUD_BUCKET
FLEXIFY_ENGINE_REPORT_CLOUD_PREFIX
FLEXIFY_ENGINE_REPORT_CLOUD_NO_SSL

(optional) Configuration of the cloud bucket/container to upload proxy or migration reports to. By default reports are not uploaded and only stored locally.

N/A when operating with the Management Server.

--report-file-chunk-size

FLEXIFY_ENGINE_REPORT_FILE_CHUNK_SIZE

(optional) Maximum size of a single report file in reports directory (in bytes, or valueK, valueM, valueG, valueT, cannot be less than 1 MiB). Default: 32M

--upload-files-after

FLEXIFY_ENGINE_UPLOAD_FILES_AFTER

(optional) Time (in hours) after which logs and reports will be uploaded to the cloud even if chunk size is not reached.

0 disables automatic upload. Default: 1 hour.

--prometheus-port

FLEXIFY_ENGINE_PROMETHEUS_PORT

Port to expose Prometheus metrics on. Must be different from the proxy port. Disabled by default.

--ca-file

FLEXIFY_ENGINE_CA_FILE

(optional) Path to trusted root certificates file (.cer or .pem) used when verifying clouds' SSL certificates.
Default is system-specific.

--providers-path

FLEXIFY_ENGINE_PROVIDERS_PATH

(optional) Path to the providers.json file.

N/A when operating with the Management Server (the list of providers is received from the Management Server).

Default: /etc/flexify/providers.json or ./providers.json

--b2-test-mode

FLEXIFY_ENGINE_B2_TEST_MODE

(optional) Special test node for checking compatibility with Backable B2 (NONE / RANDOM / UPLOADS / EXPIRE / CAPS.

Default is NONE.

--hash-threads

FLEXIFY_ENGINE_HASH_THREADS

(optional) The number of threads that the engine will use when calculating hashes and checksums.

Default is the number of logical processors minus 1.