是否可以将openldap中的所有数据导出(例如使用ldapsearch或其他工具)到(ldif?)文件,然后将其导入到另一台服务器上并将其放入每天运行的脚本中.当第一个/主服务器不可用时,我可以使用另一个作为备份吗?
我可以完全访问第一个/主服务器,但我无法修改它的配置,所以我认为我无法设置复制.
Is it possible to export all the data inside openldap for example
using ldapsearch or some other tool to a (ldif?) file
当然,这是可能的. slapcat / slapadd是你要找的:
slapcat -f /path/to/the/slapd.conf -l backup.ldif slapadd -v -c -l backup.ldif -f /path/to/the/slapd.conf
这些基本上是脱机工具,你应该在继续之前停止slapd.也许您还必须在还原后设置/修复文件权限.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。