#!/usr/bin/bash cd /home/ta180m/git/LDAP/users sudo slapcat -F /etc/openldap/slapd.d -n 0 -l ldap-mdb-config.ldif sudo slapcat -l ldap-database.ldif sudo chown ta180m:ta180m ldap*.ldif git add ldap-mdb-config.ldif ldap-database.ldif git commit git push