mirror of
https://github.com/osixia/container-openldap.git
synced 2026-11-06 20:48:18 -04:00
openldap-ctl restore --force deleted existing config and data before loading the backup: a failing slapadd left OpenLDAP stopped with empty or partial databases. Existing data is now moved to a hidden .restore-previous directory in the same volume, removed when the restore succeeds, and put back otherwise. OpenLDAP is restarted in both cases if it was running. A leftover .restore-previous directory from an interrupted restore blocks the next restore. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>