From 81eeae6436a9908683534f7123804ff66b05fa81 Mon Sep 17 00:00:00 2001 From: Mark Grimes Date: Thu, 21 Nov 2024 17:31:25 -0800 Subject: [PATCH] Save snmp config directory. --- truenas_install/__main__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/truenas_install/__main__.py b/truenas_install/__main__.py index 43d61509..8a7a35bd 100644 --- a/truenas_install/__main__.py +++ b/truenas_install/__main__.py @@ -455,6 +455,8 @@ def main(): rsync.append("var/lib/libvirt/qemu/nvram") if os.path.exists(f"{old_root}/var/lib/netdata"): rsync.append("var/lib/netdata") + if os.path.exists(f"{old_root}/var/lib/snmp"): + rsync.append("var/lib/snmp") if os.path.exists(f"{old_root}/var/lib/syslog-ng/syslog-ng.persist"): rsync.append("var/lib/syslog-ng/syslog-ng.persist") if "var/log" not in cloned_datasets: