Sanitize Configuration¶
The DBSnapper Agent is configured using a YAML file, which is created when you run dbsnapper config init
In this file you can specify multiple target configurations, each target being a set of options for a database you want to sanitize.
Referring to our sample configuration file, the highlighted lines show the configuration options for a database sanitization:
~/.config/dbsnapper/dbnsapper.yml
example
Configuration options¶
Sanitization configuration options consist of a destination url dst_url
that will be used to load a snapshot for sanitization and a query file query_file
that contains the sanitization queries. When the sanitization is complete, a snapshot of the sanitized database will be created and stored in the working directory.
Subset configuration options
dst_url
-
Connection string for the database where you will sanitize the snapshot (will be overwritten)
query_file
-
Name of the file containing the sanitization queries, located in your working directory (default:
~/.dbsnapper
)
Danger: Destination database dst_url
will be DROPPED and RECREATED
Any connection string provided in the dst_url
attribute will be overwritten when certain commands are used such as load
and sanitize