From 8f010fc9805eadc5c27ac5078cce20bb6abc73b5 Mon Sep 17 00:00:00 2001 From: bugclerk <40872210+bugclerk@users.noreply.github.com> Date: Fri, 22 Nov 2024 09:34:03 -0800 Subject: [PATCH] Save snmp config directory. (#773) (cherry picked from commit 81eeae6436a9908683534f7123804ff66b05fa81) Co-authored-by: Mark Grimes --- truenas_install/__main__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/truenas_install/__main__.py b/truenas_install/__main__.py index b9baff4d..b18bff1e 100644 --- a/truenas_install/__main__.py +++ b/truenas_install/__main__.py @@ -451,6 +451,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: