safe-ldif

Back up LDAP database in an Git repository

Install

All systems
curl cmd.cat/safe-ldif.sh
Debian Debian
apt-get install ldap-git-backup
Ubuntu
apt-get install ldap-git-backup
image/svg+xml Kali Linux
apt-get install ldap-git-backup
Windows (WSL2)
sudo apt-get update sudo apt-get install ldap-git-backup
Raspbian
apt-get install ldap-git-backup

ldap-git-backup

Back up LDAP database in an Git repository

ldap-git-backup (creates and) updates a Git repository which contains the current LDIF dump of an LDAP directory. Given that writes are rare in an LDAP directory and confined to a few entries for each write Git will store the entire history of an LDAP directory in a space efficient way. By default the backups are done with slapcat from OpenLDAP but can be done with any command that dumps the current contents of an LDAP directory in LDIF format.