Fileset Tuning Parameters

Enterprise

Bacula Enterprise Only

This solution is only available for Bacula Enterprise. For subscription inquiries, please reach out to sales@baculasystems.com.

These parameters adjust concurrency, network retries, and local disk spooling. The defaults are suitable for most installations. Increase concurrency gradually and monitor memory use, available disk space, and Exchange throttling.

Concurrency and network retries

Option

Required

Default

Values

Example

Description

backup_queue_size

No

100

1-500

100

Maximum number of operations in each internal queue between fetching, downloading, and publishing. Larger queues can increase memory and spool disk usage; they do not increase the number of worker threads.

concurrent_threads

No

10

1-100

1

Maximum number of concurrent backup download workers per service. Set to 1 to reduce parallel downloads. Higher values increase resource use on the File Daemon and Exchange server.

concurrent_listing_threads

No

2

1-20

1

Maximum number of concurrent workers fetching backup item listings. This affects the number of concurrent EWS requests.

api_list_page_size

No

100

10-500

100

Number of entries requested per page when listing items through EWS.

general_network_retries

No

5

Non-negative integer

10

Number of retries for failed EWS requests. Zero disables retries.

general_network_delay

No

50

Non-negative integer (seconds)

100

Delay between retries of failed EWS requests.

Spooling

Attachments and MIME content are temporarily written to disk on the File Daemon host before being sent to Bacula. Restore operations also use temporary disk files. The spool directory is <path>/e2ws/spool, normally /opt/bacula/working/e2ws/spool with the supplied backend script. See Backup of Attachments and Files for disk sizing and cleanup guidance.

All five parameters below are optional. They can be set in the FileSet plugin line or in the file selected by config_file. In BWeb, they are grouped under Generic options > Spooling.

Spooling parameters

Option

Default

Values

Description

spool_free_space_check

yes

yes, no

Check available disk space before creating a spool file and while writing it. Disabling this check does not disable the per-file size limit.

spool_free_space_min_bytes

104857600 (100 MiB)

Non-negative integer (bytes)

Minimum free space to retain on the filesystem containing the spool directory. This is a free-space reserve, not a limit on total spool usage.

spool_free_space_wait_seconds

20

Non-negative integer (seconds)

Wait between checks when there is insufficient disk space.

spool_free_space_retries

100

Non-negative integer

Number of retries after a failed free-space check. Zero fails immediately when space is insufficient. With the defaults, one exhausted wait cycle takes approximately 2000 seconds (33 minutes).

spool_max_file_size_bytes

-1 (unlimited)

Positive integer (bytes), or -1

Maximum size of an individual spool file. The limit is checked before writing when the size is known, and while writing. Exceeding it causes an item backup or restore error; it is not an exclusion filter.

If space remains insufficient after the configured retries, the operation reports an error and removes its partial spool file. Space checks cannot reserve disk capacity against other jobs or applications, so allow additional headroom.

For example, these entries in an existing e2ws.settings file retain 1 GiB of free space and wait up to 10 minutes per exhausted free-space wait cycle:

spool_free_space_check=yes
spool_free_space_min_bytes=1073741824
spool_free_space_wait_seconds=20
spool_free_space_retries=30
spool_max_file_size_bytes=-1

Go back to: Fileset Configuration.