when I backfill for 30 days, can I upload it to di...
# replication-ask-ai
p
when I backfill for 30 days, can I upload it to different folder strcutures in s3?
k
Yes, you can control which S3 “folders” (key prefixes) Airbyte writes to, but this is done per connection via the S3 destination settings, not dynamically per backfill run. In the S3 destination: - You configure a bucket path (base folder) and an S3 Path Format that defines the subfolder structure using variables like
${NAMESPACE}
,
${STREAM_NAME}
,
${YEAR}
,
${MONTH}
,
${DAY}
, etc. [[S3 setup](https://docs.airbyte.com/integrations/destinations/s3#step-2-set-up-the-s3-destination-connector-in-airbyte)] - The default pattern is
${NAMESPACE}/${STREAM_NAME}/${YEAR}_${MONTH}_${DAY}_${EPOCH}_
, but you can change it to any combination of the supported variables to get different folder structures (for example, by date). [[S3 path format](https://docs.airbyte.com/integrations/destinations/s3#step-2-set-up-the-s3-destination-connector-in-airbyte)] However, the docs do not describe a way to automatically change the S3 path per day within a single connection just because you are backfilling 30 days. To write different days into different folder structures, you would need to: - Adjust the S3 Path Format to encode the date into the path (so all days follow the same date-based structure), or - Manually change the destination bucket path / path format between runs or use separate connections, each with its own S3 path configuration. If you share how you want the 30 days organized (e.g., one folder per day, or separate “backfill” vs “live” folders), I can map that to a concrete S3 Path Format based on the documented options.