[Kea-users] Proper Backup and Restore Procedure
Jonas Alfredsson
jonas.alfredsson at protonmail.com
Thu Dec 19 14:01:55 UTC 2024
Hi,
I have a question regarding the proper method of performing a backup+restore
operation on Kea when using the memfile.
For ease of conversation we define the following config:
"lease-database": {
"type": "memfile",
"name": "/kea/leases/dhcp4.csv",
"lfc-interval": 3600
}
From my investigation regarding how Kea handles the leases file I came across
the design document for [kea-lfc][1], where it appears it will create a file called
"/kea/leases/dhcp4.csv.2" when done. This file then contains the current cleaned
up state of the DHCP service. The main dhcp4.csv file is then just the journal
with differences from the last time the .2 file was created.
My question is then, is it enough to just copy this .2 file, and place it in at
"/kea/leases/dhcp4.csv.2" in the new machine to have it pick up from where the
old server were when this file was created, or is there another procedure that is
endorsed by ISC?
Best regards,
Jonas
[1]: https://gitlab.isc.org/isc-projects/kea/-/wikis/designs/Lease-File-Cleanup-design
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20241219/43aac67a/attachment.htm>
More information about the Kea-users
mailing list