Commands
Run dbt snapshot
Run multiple individual snapshots or bulk snapshots
Multiple individual snapshots
You can add 1 or more snapshot SQL files into your pipeline as a dbt block.
Add a dbt block as if you were adding a dbt model. However, select a snapshot file instead of a model file.
Bulk snapshots
Instead of adding a snapshot file to your pipeline 1 at a time,
you can run the dbt snapshot
command on an entire folder or exclude certain folders
by doing the following:
- Add a dbt block and select the option labeled Generic dbt command.
- In the text input field labeled command, enter the value
snapshot
. - You can optionally add the
--select
or--exclude
flag in the body of the block.