Skip to content

dbsnapper sanitize

Used to sanitize a snapshot

Synopsis

The dbsnapper sanitize command sanitizes the specified database snapshot and takes a target_name and snapshot_index as arguments.

The target_name is the name of the target defined in the configuration file.

The snapshot_index is the index number of the snapshot to load.

Note

The target configuration must specifiy a query_file configuration parameter that specifies the name of the file (located in the working_directory) that contains the sanitization query

This command will use the database specified in the sanitize: dst_url: configuration parameter, load the specified snapshot into the database, and then sanitize the database using the specified query.

The resulting sanitized database will be dumped to a file in the working_directory specified in the conifiguration and will be associated with the snapshot.

dbsnapper sanitize target_name snapshot_index