Skip to main content

Configuration reference

Canonical schema: apibackuper/schemas/config_schema.json. Required top-level keys: settings, project, params, data, storage.

Validate with apibackuper validate-config.

settings

FieldTypeNotes
namestringRequired
initializedboolean
idstring
splitterstringDefault .
logfilestringDefault apibackuper.log
state_filestring
checkpoint_filestring
checkpoint_interval_pagesinteger≥ 0

project

FieldTypeNotes
urluriRequired
http_modeGET | POSTRequired
descriptionstring
work_modesstringfull,incremental,update
iterate_bypage | skip | rangeDefault page
resp_typejson | xml | htmlDefault json
update_modeby_change_key | by_timestamp | custom_script
detectboolean
default_delayintegerSeconds
retry_delayintegerSeconds
retry_countinteger
force_retryboolean

params

FieldTypeNotes
page_size_limitintegerRequired, ≥ 1
start_pageintegerDefault 1
page_number_paramstring
page_size_paramstring
count_skip_paramstringSkip/offset
count_from_paramstringRange start
count_to_paramstringRange end
query_modequery | params | mixedDefault query
force_flat_paramsboolean
change_key_paramstring
update_since_paramstring

data

FieldType
data_keystring
total_number_keystring
pages_number_keystring
item_keystring
change_keystring

storage

FieldTypeNotes
storage_typezip | filesystem | sqliteRequired
storage_pathstringDefault storage
compressionboolean
compression_levelinteger0–9
max_file_sizeintegerBytes
split_filesboolean

Optional sections

Documented on their own pages: auth, rate_limit / request, follow, files, hooks.

Also available: error_handling, logging.level (DEBUG | INFO | WARNING | ERROR).