Home | Mirror | Search

第 3 章 Backup and Restore

backup

cp -r /etc/openldap .
CURRENT_DATA=`date '+%m-%d-%y'`
slapcat -l backup_${CURRENT_DATA}_neo_chen.ldif
tar zcvf backup_ldap.tar.gz ldap/
md5sum backup_ldap.tar.gz > backup_ldap.tar.gz.md5

	

restore

ldapadd -x -D "cn=root,dc=bg7nyt,dc=cn" -W -f your.ldif

comments powered by Disqus