<div style="font-family: Arial, sans-serif; font-size: 14px;">Hi,</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">I have a question regarding the proper method of performing a backup+restore</div><div style="font-family: Arial, sans-serif; font-size: 14px;">operation on Kea when using the memfile.</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">For ease of conversation we define the following config:</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span>"lease-database": {</span><div><span>    "type": "memfile",</span></div><div><span>    "name": "/kea/leases/dhcp4.csv",</span></div><div><span>    "lfc-interval": 3600</span></div><div><span>}</span></div></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">From my investigation regarding how Kea handles the leases file I came across <br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">the design document for [kea-lfc][1], where it appears it will create a file called</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span>"/kea/leases/dhcp4.csv.2" when done. This file then contains the current cleaned </span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span>up state of the DHCP service. The main <span>dhcp4.csv</span> file is then just the journal </span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span>with differences from the last time the .2 file was created.</span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span><br></span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span>My question is then, is it enough to just copy this .2 file, and place it in at <br></span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span><span>"/kea/leases/dhcp4.csv.2"</span> in the new machine to have it pick up from where the</span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span>old server were when this file was created, or is there another procedure that is</span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span>endorsed by ISC?<br></span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">Best regards,</div><div style="font-family: Arial, sans-serif; font-size: 14px;">Jonas<br></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">[1]: <span><a target="_blank" rel="noreferrer nofollow noopener" href="https://gitlab.isc.org/isc-projects/kea/-/wikis/designs/Lease-File-Cleanup-design">https://gitlab.isc.org/isc-projects/kea/-/wikis/designs/Lease-File-Cleanup-design</a><br></span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span><br></span></div>
<div class="protonmail_signature_block protonmail_signature_block-empty" style="font-family: Arial, sans-serif; font-size: 14px;">
    <div class="protonmail_signature_block-user protonmail_signature_block-empty">
        
            </div>
    
            <div class="protonmail_signature_block-proton protonmail_signature_block-empty">
        
            </div>
</div>