Backup and Restore

Black Duck Defensics® User Guide

Version
latest

The Defensics PostgreSQL database can be backed up to a database dump file and restored by using the following launcher commands. See –-help in sub-commands to see more info. If something goes wrong in these operations, you can add –-verbose to see more details. These commands start and stop PSQL automatically if it's not already running.

Backing Up Database

Back up the database with the following command in Windows:

cmd /c .\Defensics.exe -J-splash:none -console database backup <arguments>

Back up the database with the following command in Linux:

./Defensics -J-splash:none -console database backup <arguments>

where target-file is optional, defaults to defensics-psql-backup.dump.

Restoring Database

Restore the database with the following command in Windows:

cmd /c .\Defensics.exe -J-splash:none -console database restore <arguments>

Restore the database with the following command in Linux:

./Defensics -J-splash:none -console database restore <arguments>

Note that this will WIPE the previous database contents and the command asks you to confirm this. Restore can be parallelized by supplying the -j<job-count> argument.