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"]
.
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"]
- Use relative path:
-
❌ Don't:
- Avoid absolute paths:
snapshot-paths: ["/Users/username/project/snapshots"]
- Avoid absolute paths:
Examples
Use a subdirectory named archives
instead of snapshots
dbt_project.yml
snapshot-paths: ["archives"]
0