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

    Restore not working

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    3 Posts 2 Posters 1.3k 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 Offline
      tlum
      last edited by

      I have loaded new install on new hardware. Ran a backup from the existing server and tried to restore to the new install.

      For example I tried to restore only the DHCP server section. Nothing restores and the log has the mesage: /diag_backup.php: XML error: no dhcpd object found!

      I have checked the backup file and there is no doubt that the dhcpd section is there

        <dhcpd>
          <lan>
            <range><from>192.168.2.1</from>
              <to>192.168.2.127</to></range> 
            <defaultleasetime>
            <maxleasetime>
            <netmask>
            <failover_peerip>
            <gateway>
            <enable>
            <ddnsdomain>
            <next-server>
            .
            .
            .</next-server></ddnsdomain></enable></gateway></failover_peerip></netmask></maxleasetime></defaultleasetime></lan></dhcpd>
      

      what do you suppose the problem is?

      1 Reply Last reply Reply Quote 0
      • jimpJ Offline
        jimp Rebel Alliance Developer Netgate
        last edited by

        If you restore a section, the restore function requires that only that section exist in the file (literally you have to cut just the <dhcpd>…</dhcpd> portion out and put it in its own file).

        That's been fixed for 2.1 to accept the whole file and just read the requested part.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • T Offline
          tlum
          last edited by

          Ah… so its not just me.

          I ended up doing a backup of both machines and then merging the desired sections from the existing machine backup into the new machine backup and then doing a Restore - All.

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