export-archived

Definition

Exports data from the archive tables.

Usage

$ airflow db export-archived [-h] [--drop-archives] [--export-format {csv}]
                           --output-path DIRPATH [-t TABLES] [-y]

Arguments

Parameter Description

--drop-archives

Drop the archived tables after exporting

--export-format

The file format to export the archive data. Default: csv

--output-path

The path to the output directory to export the archive data. Must be an existing directory

-t, --tables

Table names to perform maintenance on (use comma-separated list). Options: callback_request, celery_taskmeta, celery_tasksetmeta, dag, dag_run, dataset_event, import_error, job, log, session, sla_miss, task_fail, task_instance, task_instance_history, task_reschedule, trigger, xcom

-y, --yes

Do not prompt for confirmation

Examples

To export the archived session table, run:

$ airflow db export-archived --output-path /tmp/exported-sessions.json session
Found a mistake? Seleсt text and press Ctrl+Enter to report it