Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Restore backup packages from the console

    Scheduled Pinned Locked Moved General pfSense Questions
    1 Posts 1 Posters 241 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T Offline
      tacioandrade
      last edited by

      Hello friends, I am creating a script to install the Zabbix Agent and Zabbix Proxy on pfSense, so that I can facilitate the process of deploying the packages, user parameters and scripts necessary for the correct monitoring of the environments I manage.

      I tried to find a simple way to change the xml to insert the data, running the least risk of corrupting the pfSense configuration file and so far the best option I found was to generate a backup only of the packages from a pfSense configured only I need and then import this file into the new pfSense.

      Searching the internet I didn't find anything like that, so I went straight to the pfSense source code and found the command rrdtool restore -f '{$ xml_file}' '{$ rrd_file}', but I couldn't understand how it would work.

      Tried: rrdtool restore -f packages.xml /conf/config.xml

      However returned error: ERROR: line 14: expected <installedpackages> element but found <rrd>

      If anyone knows how to solve this then I would appreciate it very much.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.