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. | |
# |
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
FILE SPACING: | |
# double space a file | |
sed G | |
# double space a file which already has blank lines in it. Output file | |
# should contain no more than one blank line between lines of text. | |
sed '/^$/d;G' |