pageicon Wednesday Mar 07, 2007

Directory Server 6.0 backups

It goes without saying that backups are critical, Karena puts it quite succinctly.

Sun Java Directory Server 6.0 offers new backup features. (Read the official documentation here)

Frozen mode
Frozen mode disallows updates to the data, enabling you to take backup. You can see a screenshot of how to set frozen mode or use the CLI as follows:
#./opt/SUNWdsee/ds6/bin/dsconf set-server-prop read-write-mode:frozen

This will take the database offline, process all pending operations and flush the database environment.
Remember that the data isn't accessible until you turn frozen mode off as follows

#./opt/SUNWdsee/ds6/bin/dsconf set-server-prop read-write-mode: read-write

Of course if you are using the new ZFS file system, (read what Adam writes about it), then you can take a pretty quick snapshot (see my entry last year) of the data. Otherwise follow the guidelines below for using the CLI.

Backups using the CLI

#./opt/SUNWdsee/ds6/bin/dsadm backup

dsadm requires that the server be stopped first

/opt/SUNWdsee/ds6/bin/dsconf backup

dsconf does not require that the server be stopped first.The dsconf utility writes a temporary entry to the cn=backup,cn=task,cn=config branch of the directory, the task runs, and the temporary entry is removed     


Backup in LDIF/text format

/opt/SUNWdsee/ds6/bin/dsadm export

/opt/SUNWdsee/ds6/bin/dsconf export


dsadm and dsconf will export a single directory database to LDIF. Both bypass the LDAP protocol and read directly from the database. 

The dsconf and dsadm export commands can also be used with the --no-repl option to specify that no replication information is to be exported. The default is that the replicated suffix is exported to an LDIF file with replication information. The resulting LDIF will contain attributes that are used by the replication mechanism.
    

Backups of the logs and configuration information

The server creates backups of the configuration located in /pathto/instance/config

dse.ldif.startOK is created upon successful server startup, this way you are fairly certain that the configuration is viable.

dse.ldif.bak is up-to-date with latest changes as well



Technorati Tags:

Comments:

Post a Comment:
Comments are closed for this entry.

« December 2009
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  
       
Today

Feeds

Search this blog

Downloads

Download Glassfish

Download OpenOffice

Download Solaris

Download OpenSSO

Download OpenDS

Links

Weblog menu

Today's referrers

Today's Page Hits: 34

Syndication

   XML RSS

Add to Google

Subscribe in Rojo
Subscribe with Bloglines
Subscribe in NewsGator Online
Add Notes from Jo to Newsburst from CNET News.com



View My Stats