Backing Up Security Auditor
We recommend that you back up the following:
…\SecurityAuditor\db
…\SecurityAuditor\tomcat\webapps\SecurityAuditor\exports
…\SecurityAuditor\tomcat\webapps\SecurityAuditor\logs
…\SecurityAuditor\tomcat\webapps\SecurityAuditor\reports
…\SecurityAuditor\tomcat\webapps\SecurityAuditor\scripts
…\SecurityAuditor\tomcat\webapps\SecurityAuditor\WEB-INF\keys
…\SecurityAuditor\tomcat\webapps\SecurityAuditor\WEB-INF\license
Backup Scripts
The Security Auditor installation includes backup scripts you can use to automate the backup process.
Script location
- General: security auditor home\sabackup
- Windows: C:\Program Files (x86)\Powertech\SecurityAuditor\sabackup
Scripts
Windows:
- sa_backup.bat
- sa_restore.bat
- sa_setupenv.bat
Xnix (bash):
- sa_backup.sh
- sa_restore.sh
- sa_setupenv.sh
Running the Backup Scripts
Before running the scripts, stop the Security Auditor web server and database services.
By default, the backup script will create a backup folder here:
General:
security auditor home\sabackup\backups\YourComputerName\timestamp
Windows:
C:\Program Files (x86)\Powertech\SecurityAuditor\sabackup\backups\YourComputerName\timestamp
C:\Program Files (x86)\Powertech\SecurityAuditor\sabackup\backups\SAServer\20161231-235959
Copy/modify the backup scripts to use a location more appropriate for your needs.
The restore script must be modified to restore from the proper backup location. To do so, change the “SABACKUP” environment variable.