Restore not working
-
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?
-
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.
-
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.