I have an ldif file. I created it with this command:
kill -INT `cat /usr/local/var/run/slapd.pid`
slapcat -v -f /usr/local/etc/openldap/slapd.conf -l /usr/local/etc/openldap_backup/backup.`date +'%m-%d-%Y'`.ldif
And, I try to restore ldap database with:
slapadd -v -c -l backup.11-24-2017.ldif -f /usr/local/etc/openldap/slapd.conf
But I have an error:
could not add entry .... (line=777): txn_aborted! DB_KEYEXIST: Key/data pair already exists (-30995)
How can I fix it?