Skip to main content

snapshot-paths

dbt_project.yml
snapshot-paths: [directorypath]

Definition

Optionally specify a custom list of directories where snapshots are located.

Default

By default, dbt will search for snapshots in the snapshots directory. For example, snapshot-paths: ["snapshots"].

Paths specified in snapshot-paths must be relative to the location of your dbt_project.yml file. Avoid using absolute paths like /Users/username/project/snapshots, as it will lead to unexpected behavior and outcomes.
  • Do

    • Use relative path:
      snapshot-paths: ["snapshots"]
  • Don't:

    • Avoid absolute paths:
      snapshot-paths: ["/Users/username/project/snapshots"]

Examples

Use a subdirectory named archives instead of snapshots

dbt_project.yml
snapshot-paths: ["archives"]
0