Skip to content
Snippets Groups Projects
Commit bceeb223 authored by Xueshan Feng's avatar Xueshan Feng
Browse files

Add command to show mdb size before restore.

parent 449c2df2
No related branches found
No related tags found
Loading
......@@ -52,6 +52,7 @@ function mdb_load() {
if [[ ${LDAP_FORCE_RESTORE} = "true" ]]; then
echo "Force restore from ${bakData}"
else
echo "${LDAP_MDB_DIR}/data.mdb size is $(du -sh ${LDAP_MDB_DIR}/data.mdb)"
echo -e "Backup data is newer than ${LDAP_MDB_DIR}/data.mdb.\nLoading most recent data and config..."
fi
find ${LDAP_MDB_DIR} -type f -name '*.mdb' -delete
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment