sqadm fsck(1)
DESCRIPTION
This command verifies integrity of Squore objects. Issues are reported on stderr. Unless a resolution strategy has been supplied with the --strategy option, no corrective action is performed.
The following checks are performed:
-
Unreachable project folder - no database entry references this folder, can be safely removed.
-
Corrupted project (missing disk data) - a database entry references a missing folder. The project cannot be rebuilt without loosing information (metrics, status of findings, etc.).
The sqadm fsck command shall be executed on a stopped Squore server, but a running database.
OPTIONS
-y, --no-prompt
Do not prompt for confirmation.
-s, --strategy op
Strategy to apply on invalid objects. Only none (nothing is done) and trash (invalid objects are removed) are supported.
-D, --data-dir dir
Directory with Squore projects files (<SQUORE_DATA>/projects).
--jdbc-url url
Use alternate database connection, with url of the form jdbc:subprotocol:subname.
--jdbc-user user
Use alternate database username.