eDirectory のバックアップ

How to use ndsbackup utility to backup and restore eDirectory objects


-基本は-

# ndsbackup cvf Path-to-MyTree.Backup.db -a .admin.MyOrg -p adminpassword

です。絶対パスは /opt/novell/eDirectory/bin です。

oes11x1:~ # ls /opt/novell/eDirectory/bin
dsbk ldapmodify ndsconfig ndspassstore ndsstat
edirutil ldapmodrdn ndsdibupg ndspath ndstrace
ether ldapsearch ndsimonitor ndsrepair nmasinst
ice ldif2dib ndsindex ndssch novell-getcore
ldapadd ndsautotrace ndslogin ndssnmp passwdstore
ldapconfig ndsbackup ndsmanage ndssnmpconfig
ldapdelete ndscheck ndsmerge ndssnmpsa

-実行結果-
oes11x1:~/shell # ndsbackup cvf ace-tree.bak -a .admin.ace -p password

[1] Instance at /etc/opt/novell/eDirectory/conf/nds.conf: oes11x1.OU=system.OU=tokyo.O=ace.ACE-TREE
a Schema
a .T=ACE-TREE.
a .O=ace.
a .OU=tokyo.O=ace.
a .OU=system.OU=tokyo.O=ace.
a .OU=Tomcat-Roles.OU=system.OU=tokyo.O=ace.
a .CN=admin.OU=Tomcat-Roles.OU=system.OU=tokyo.O=ace.
a .CN=manager.OU=Tomcat-Roles.OU=system.OU=tokyo.O=ace.

: 中略

a .CN=Security Policy.CN=Security.
a .CN=Authorized Login Methods.CN=Security.
a .CN=NDS.CN=Authorized Login Methods.CN=Security.
a .CN=Challenge Response.CN=Authorized Login Methods.CN=Security.
a .CN=Macintosh Native File Access.CN=Authorized Login Methods.CN=Security.
a .CN=Windows Native File Access.CN=Authorized Login Methods.CN=Security.
a .CN=Login Policy.CN=Security.
a .CN=Authorized Post Login Methods.CN=Security.
a .CN=Password Policies.CN=Security.
a .CN=Common_Proxy_Policy.CN=Password Policies.CN=Security.
a .CN=CRL Container.CN=Security.
a .CN=One - Configuration.CN=CRL Container.CN=Security.
a .CN=One.CN=One - Configuration.CN=CRL Container.CN=Security.
a .CN=Issued Certificates.CN=Security.
a .CN=SecretStore.CN=Security.
oes11x1:~/shell # ls *.bak -l
-rw-r--r-- 1 root root 6674817 Sep 8 17:12 ace-tree.bak
oes11x1:~/shell #

-特定のコンテナのみバックアップ-
[root] の権限がないアカウント たとえば .admin.tokyo.ace は tokyo にのみ権限を持っているようなケースです。

oes11x1:~/shell # ndsbackup cvf tokyo.bak -a .admin.tokyo.ace -p password ou=tokyo.o=ace

[1] Instance at /etc/opt/novell/eDirectory/conf/nds.conf: oes11x1.OU=system.OU=tokyo.O=ace.ACE-TREE
a .OU=tokyo.O=ace.
a .OU=system.OU=tokyo.O=ace.
a .OU=Tomcat-Roles.OU=system.OU=tokyo.O=ace.
a .CN=admin.OU=Tomcat-Roles.OU=system.OU=tokyo.O=ace.
a .CN=manager.OU=Tomcat-Roles.OU=system.OU=tokyo.O=ace.
a .CN=NFAUWorld.OU=system.OU=tokyo.O=ace.

: 略

a .CN=mypo.OU=grpwise.OU=tokyo.O=ace.
a .CN=POA.CN=mypo.OU=grpwise.OU=tokyo.O=ace.
a .CN=mypo Library.OU=grpwise.OU=tokyo.O=ace.
a .OU=tmp.OU=grpwise.OU=tokyo.O=ace.
oes11x1:~/shell # ls -al *.bak
-rw-r--r-- 1 root root 6674817 Sep 8 17:12 ace-tree.bak
-rw-r--r-- 1 root root 1199861 Sep 8 17:20 tokyo.bak
oes11x1:~/shell #

-リストア-

# ndsbackup xvf backupfile -a admin.MyOrg -p password

でリストアします。

- Keyword -
Novell eDirectory バックアップ コマンドライン OES11

islandcenter.jp
by islandcenter | 2012-09-08 17:31 | OES Linux | Comments(0)