Hey Guys,
Today I would like to provide you a 'quick tip': How to run backup commands into OID11G.
Basically I will provide 2 different ways:
1) By LdifWrite:
ldifwrite connect=oiddb basedn="cn=users,dc=us,dc=tleoncio-server,dc=com" thread=3 verbose=true ldiffile=/tmp/backup-ThiagoLeoncioEnv-[DATE].dat
*thread option is to improve command performance, in case you have bunch of values to backup.
*This first case, I am doing a full backup of all attributes these users have.
2) By LdapSearch:
ldapsearch -p 3769 -D cn=orcladmin -w *** -L -b "cn=users,dc=us,dc=tleoncio-server,dc=com" -s sub -j 1000 "objectclass=*" mail > /tmp/output_backup-ThiagoLeoncioEnv-[DATE].dat
* This second case, I am doing only backup of mail attributes of all users.
I hope this helps you. Good coding.
Thiago Leoncio.
No comments:
Post a Comment