mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 18:22:47 +01:00
backup local rules
This commit is contained in:
@@ -660,6 +660,11 @@ suricata_idstools_migration() {
|
|||||||
fail "Error: rsync failed to copy the files. Thresholds have not been backed up."
|
fail "Error: rsync failed to copy the files. Thresholds have not been backed up."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#Backup local rules
|
||||||
|
mkdir -p /nsm/backup/detections-migration/suricata/local-rules
|
||||||
|
rsync -av /opt/so/rules/nids/suri/local.rules /nsm/backup/detections-migration/suricata/local-rules
|
||||||
|
rsync -av /opt/so/saltstack/local/salt/idstools/rules/local.rules /nsm/backup/detections-migration/suricata/local-rules
|
||||||
|
|
||||||
#Tell SOC to migrate
|
#Tell SOC to migrate
|
||||||
mkdir -p /opt/so/conf/soc/migrations
|
mkdir -p /opt/so/conf/soc/migrations
|
||||||
echo "0" > /opt/so/conf/soc/migrations/suricata-migration-2.4.70
|
echo "0" > /opt/so/conf/soc/migrations/suricata-migration-2.4.70
|
||||||
|
|||||||
Reference in New Issue
Block a user