Add LDAP backup script
This commit is contained in:
parent
5676b3f046
commit
d203bcd0e2
9
backup-ldap
Executable file
9
backup-ldap
Executable file
|
@ -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
|
Loading…
Reference in a new issue