The "Days To Sync If History Is Full" setting for the SFTP Bulk source connector controls the lookback window Airbyte uses to determine which files to sync when the state history is full. Specifically, Airbyte tracks the files it has already synced in a "history" section of the connection's state message, with a limit of up to 10,000 files. Once this history is full (i.e., it contains 10,000 entries), Airbyte will drop the oldest entries and, for subsequent syncs, will only read files that were last modified between the date of the newest file in history and the number of days specified by "Days To Sync If History Is Full" prior to that date. This mechanism ensures that, even when the state history cannot track every single file (due to the 10,000 file limit), Airbyte will still attempt to capture any changes within a recent window of time, as defined by this setting. You know the history is full when the number of tracked files reaches 10,000, at which point this lookback window is applied automatically to determine which files to sync going forward [Source: S3 State documentation, which is referenced in the SFTP Bulk setup guide](
https://docs.airbyte.com/integrations/sources/s3#state). For SFTP Bulk, this setting is available as an optional configuration when setting up your stream in Airbyte Cloud [Setup guide for SFTP Bulk](
https://docs.airbyte.com/integrations/sources/sftp-bulk#for-airbyte-cloud).