Your Directory Server must be stopped to run the dsadm backup command.
You can use DSCC to perform this task. For information, see Directory Service Control Center Interface and the DSCC online help.
Back up your directory data.
$ dsadm backup [ -f FLAG ] ... INSTANCE_PATH ARCHIVE_DIR
$ dsadm backup /local/dsInst /local/tmp/20091005
By default, binary backup commands will run a database recovery on the backup databases. See dsadm(1M) for disabling this behavior.
You can back up directory data while the server is running by using the command dsconf backup command. However, if changes are made to the directory data while the backup is running, proper recovery will take longer.
Never stop the server during a backup operation.