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

    How to backup & restore only DHCP Server from command line

    Scheduled Pinned Locked Moved DHCP and DNS
    2 Posts 2 Posters 811 Views
    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
      thuc960
      last edited by

      Can I backup and restore only DHCP Server configuration from command line? Because I need rsync it to a lot of server with script. Thank you
      bk_dhcp.png
      bk_dhcp.png_thumb

      1 Reply Last reply Reply Quote 0
      • D
        David_W
        last edited by

        You'll have to write your own code if you want to do this. /usr/local/www/diag_backup.php will probably be a great help.

        To be honest, if you want to do anything 'clever' that requires functionality beyond that provided in pfSense, you are probably better off implementing that feature entirely separate of pfSense. For example, I require my RADIUS server to do things that are not supported in the pfSense FreeRADIUS package, so the most straightforward way ahead is to run FreeRADIUS on another FreeBSD box. You clearly have other devices available to you, as you want to synchronise the data to them.

        Depending on your application, it might help if your switches have DHCP Relay functionality.

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