Backup and Restore
Your installation of PC-lint Plus View includes some scripts designed to help save and restore snapshots of your analysis data. These scripts will allow you to:
-
Backup the current PC-lint Plus View data (See Backing-Up PC-lint Plus View Data)
-
Restore a previously saved snapshot (See Restoring PC-lint Plus View Data)
The scripts are located in the <PCLPVIEW_HOME>/bin folder of the PC-lint Plus View installation directory.
The backup and restore scripts accept a parameter that is used as the path to store the backup file or to read the backup file from when restoring. This makes it possible to use a scheduled task on Windows or a cron job on Linux to automate your backups. If you do not specify this parameter, the default backup folder will be used and each new backup will replace the previous one.
|
Backing-Up PC-lint Plus View Data
The contents of the PC-lint Plus View Database and file system can be saved using the backup script from the <PCLPVIEW_HOME>/bin folder.
In order to create a backup, run the backup script for your system, followed optionally by the path where the backup should be created.
<PCLPVIEW_HOME>/bin/backup [$BACKUP_FOLDER]
|
If you do not pass a BACKUP_FOLDER in your command, the |
Executing this script creates a folder with a compressed database dump and a backup of the projects and workspace folders. This backup can later be used by a script that restores database and file system snapshots, which we will cover in the next section.
Restoring PC-lint Plus View Data
A previously backed-up PC-lint Plus View snapshot can be restored using the restore script from the <PCLPVIEW_HOME>/bin folder.
In order to restore a backup, run the restore script for your system, followed optionally by the path where the backup to restore is located.
<PCLPVIEW_HOME>/bin/restore [$BACKUP_FOLDER]
|
If you do not pass a BACKUP_FOLDER in your command, data is restored from the |
The script will clear your current database, projects and workspace folders and replace them with the contents of the backed up data.
Resetting PC-lint Plus View Data
You can reset the data of your PC-lint Plus View installation to its initial state using the sqadm utility from the command line. The tool is located in the <PCLPVIEW_HOME>/bin folder of the PC-lint Plus View installation directory.
|
This operation cannot be undone. All the projects, roles, users and groups you created will be lost. |
-
Stop PC-lint Plus View server
-
Ensure that the PC-lint Plus View Database is started
-
From a terminal, launch the following command:
sqadm reset -
Confirm, and allow the command to finish
-
Start PC-lint Plus View server
|
More information about sqadm reset can be found in sqadm reset(1). |