diff --git a/backup-ldap b/backup-ldap new file mode 100755 index 0000000..df7c664 --- /dev/null +++ b/backup-ldap @@ -0,0 +1,9 @@ +#!/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