Skip to main content

ImportArchiveData

Imports archive row data from an export ZIP into a target archive. The target archive must be Disabled during the import (see DisableArchive). The bot validates that the export schema matches the target archive before any rows are written.

Examples​

Import in InsertOnly mode (default):

octo-cli -c ImportArchiveData `
-tid "mytenant" `
-aid "69fda707d47638c68edc7fea" `
-i "./archive-export.zip" `
-w

Import with upsert (required for windowed archives):

octo-cli -c ImportArchiveData `
-tid "mytenant" `
-aid "69fda707d47638c68edc7fea" `
-i "./archive-export.zip" `
-m "Upsert" `
-w

Options​

ShortLongRequiredDescription
-tid--tenantIdyesId of tenant
-aid--archiveRtIdyesRuntime id of the target CkArchive entity
-i--inputyesExport file to import (*.zip)
-m--modenoImport mode: InsertOnly (default) or Upsert. Upsert is required for windowed (time-range / rollup) archives.
-ps--part-size-mibnoSize of one upload request in MiB (default 50, from 1 to 90). Keep it below the body limit of the ingress (100 MiB on staging-1, prod-1 and prod-2).
-w--waitnoWait for a import job to complete

Notes​

The target archive must be Disabled during the import (use DisableArchive first, EnableArchive afterwards).

The file is uploaded in parts of 50 MiB (change with --part-size-mib), so it passes the body limit of the ingress; an interrupted upload resumes from the server's offset.

When the upload is refused, the command reports the HTTP status, the part number and the offset of the failed part, and no job is started.

On failure the bot's error message (schema mismatch / archive-not-Disabled) is surfaced verbatim.