mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-11 11:42:50 +01:00
Update soup
This commit is contained in:
@@ -639,10 +639,20 @@ suricata_idstools_migration() {
|
|||||||
#Backup the pillars for idstools
|
#Backup the pillars for idstools
|
||||||
mkdir -p /nsm/backup/detections-migration/idstools
|
mkdir -p /nsm/backup/detections-migration/idstools
|
||||||
rsync -av /opt/so/saltstack/local/pillar/idstools/* /nsm/backup/detections-migration/idstools
|
rsync -av /opt/so/saltstack/local/pillar/idstools/* /nsm/backup/detections-migration/idstools
|
||||||
|
if [[ $? -eq 0 ]]; then
|
||||||
|
echo "IDStools configuration has been backed up."
|
||||||
|
else
|
||||||
|
fail "Error: rsync failed to copy the files. IDStools configuration has not been backed up."
|
||||||
|
fi
|
||||||
|
|
||||||
#Backup Thresholds
|
#Backup Thresholds
|
||||||
mkdir -p /nsm/backup/detections-migration/suricata
|
mkdir -p /nsm/backup/detections-migration/suricata
|
||||||
rsync -av /opt/so/saltstack/local/salt/suricata/thresholding /nsm/backup/detections-migration/suricata
|
rsync -av /opt/so/saltstack/local/salt/suricata/thresholding /nsm/backup/detections-migration/suricata
|
||||||
|
if [[ $? -eq 0 ]]; then
|
||||||
|
echo "Suricata thresholds have been backed up."
|
||||||
|
else
|
||||||
|
fail "Error: rsync failed to copy the files. Thresholds have not been backed up."
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
playbook_migration() {
|
playbook_migration() {
|
||||||
|
|||||||
Reference in New Issue
Block a user