Last active
March 1, 2018 12:55
-
-
Save jcwx/a0e3199ad42fee393dae to your computer and use it in GitHub Desktop.
command to create backup tarball for Nessus install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# super user privileges will be needed for this backup | |
# | |
# Bear in mind the tarball will be created in the directory from which the command is run. | |
# | |
# If Nessus is installed somewhere other than '/opt/nessus' (the default location), adapt | |
# the command directories to reflect your environment | |
# | |
# I set the command up to exclude the scan results in the backup. The backup will | |
# restore users, scans and everything except the scan history. | |
# | |
# if scan results are needed, remove this line from the command: | |
# --exclude=/opt/nessus/var/nessus/users/admin/reports | |
tar -cvzf nessus.tgz --exclude=/opt/nessus/var/nessus/users/admin/reports /opt/nessus/var/nessus/users/ /opt/nessus/var/nessus/policies.db /opt/nessus/var/nessus/master.key /opt/nessus/var/nessus/global.db /opt/nessus/etc/nessus/nessus-fetch.db /opt/nessus/etc/nessus/nessusd.db /opt/nessus/etc/nessus/nessusd.conf.imported /opt/nessus/etc/nessus/nessusd.rules |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment