日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

openldap备份与还原

發布時間:2023/12/20 编程问答 36 豆豆
生活随笔 收集整理的這篇文章主要介紹了 openldap备份与还原 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

備份

/usr/sbin/slapcat > ldapbackupfast$curday.ldif

還原(還原之前需要關閉slapd服務)

slapadd -l /data/ldapbackupfast.ldif

?

還原使用的是openldap底層的Berkeley DB機制,需要修改dbconfig

# $OpenLDAP: pkg/ldap/servers/slapd/DB_CONFIG,v 1.3.2.4 2007/12/18 11:53:27 ghenry Exp $ # Example DB_CONFIG file for use with slapd(8) BDB/HDB databases. # # See the Oracle Berkeley DB documentation # <http://www.oracle.com/technology/documentation/berkeley-db/db/ref/env/db_config.html> # for detail description of DB_CONFIG syntax and semantics. # # Hints can also be found in the OpenLDAP Software FAQ # <http://www.openldap.org/faq/index.cgi?file=2> # in particular: # <http://www.openldap.org/faq/index.cgi?file=1075> # Note: most DB_CONFIG settings will take effect only upon rebuilding # the DB environment.# one 0.25 GB cache set_cachesize 0 2147483648 1# Data Directory #set_data_dir db# Transaction Log settings set_lg_regionmax 268435456 set_lg_bsize 2097152 #set_lg_dir logs set_lk_max_locks 10000 set_lk_max_lockers 10000 set_lk_max_objects 20000#自動刪除日志 set_flags DB_LOG_AUTOREMOVE# Note: special DB_CONFIG flags are no longer needed for "quick" # slapadd(8) or slapindex(8) access (see their -q option).

?

轉載于:https://www.cnblogs.com/stimlee/p/8057419.html

總結

以上是生活随笔為你收集整理的openldap备份与还原的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。