> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# backup_restore_* session settings

> ClickHouse session settings in the backup_restore_* generated group.

These settings are available in [system.settings](https://clickhouse.com/docs/reference/system-tables/settings.md) and are autogenerated from [source](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.cpp).

## backup\_restore\_batch\_size\_for\_keeper\_multi

Type

UInt64

Default

1000

Maximum size of batch for multi request to \[Zoo]Keeper during backup or restore

## backup\_restore\_batch\_size\_for\_keeper\_multiread

Type

UInt64

Default

10000

Maximum size of batch for multiread request to \[Zoo]Keeper during backup or restore

## backup\_restore\_failure\_after\_host\_disconnected\_for\_seconds

Type

UInt64

Default

3600

If a host during a BACKUP ON CLUSTER or RESTORE ON CLUSTER operation doesn't recreate its ephemeral 'alive' node in ZooKeeper for this amount of time then the whole backup or restore is considered as failed.
This value should be bigger than any reasonable time for a host to reconnect to ZooKeeper after a failure.
Zero means unlimited.

## backup\_restore\_finish\_timeout\_after\_error\_sec

Type

UInt64

Default

180

How long the initiator should wait for other host to react to the 'error' node and stop their work on the current BACKUP ON CLUSTER or RESTORE ON CLUSTER operation.

## backup\_restore\_keeper\_fault\_injection\_probability

Type

Float

Default

0

Approximate probability of failure for a keeper request during backup or restore. Valid value is in interval \[0.0f, 1.0f]

## backup\_restore\_keeper\_fault\_injection\_seed

Type

UInt64

Default

0

0 - random seed, otherwise the setting value

## backup\_restore\_keeper\_max\_retries

Type

UInt64

Default

1000

Max retries for \[Zoo]Keeper operations in the middle of a BACKUP or RESTORE operation.
Should be big enough so the whole operation won't fail because of a temporary \[Zoo]Keeper failure.

## backup\_restore\_keeper\_max\_retries\_while\_handling\_error

Type

UInt64

Default

20

Max retries for \[Zoo]Keeper operations while handling an error of a BACKUP ON CLUSTER or RESTORE ON CLUSTER operation.

## backup\_restore\_keeper\_max\_retries\_while\_initializing

Type

UInt64

Default

20

Max retries for \[Zoo]Keeper operations during the initialization of a BACKUP ON CLUSTER or RESTORE ON CLUSTER operation.

## backup\_restore\_keeper\_retry\_initial\_backoff\_ms

Type

UInt64

Default

100

Initial backoff timeout for \[Zoo]Keeper operations during backup or restore

## backup\_restore\_keeper\_retry\_max\_backoff\_ms

Type

UInt64

Default

5000

Max backoff timeout for \[Zoo]Keeper operations during backup or restore

Cloud default value: `60000`.

## backup\_restore\_keeper\_value\_max\_size

Type

UInt64

Default

1048576

Maximum size of data of a \[Zoo]Keeper's node during backup

## backup\_restore\_s3\_retry\_attempts

Type

UInt64

Default

1000

Setting for Aws::Client::RetryStrategy, Aws::Client does retries itself, 0 means no retries. It takes place only for backup/restore.

## backup\_restore\_s3\_retry\_initial\_backoff\_ms

Type

UInt64

Default

25

Initial backoff delay in milliseconds before the first retry attempt during backup and restore. Each subsequent retry increases the delay exponentially, up to the maximum specified by `backup_restore_s3_retry_max_backoff_ms`

## backup\_restore\_s3\_retry\_jitter\_factor

Type

Float

Default

0.1

Jitter factor applied to the retry backoff delay in Aws::Client::RetryStrategy during backup and restore operations. The computed backoff delay is multiplied by a random factor in the range \[1.0, 1.0 + jitter], up to the maximum `backup_restore_s3_retry_max_backoff_ms`. Must be in \[0.0, 1.0] interval

## backup\_restore\_s3\_retry\_max\_backoff\_ms

Type

UInt64

Default

5000

Maximum delay in milliseconds between retries during backup and restore operations.
