DS Backup

From Dogtag
Jump to: navigation, search


This page describes the process to back up a DS instance that can be restored in the future.

There are several ways to backup a DS instance:

  • back up individual databases in the instance
  • back up the entire instance (which includes all databases)

Make sure the server is stopped while creating a backup:

$ systemctl stop dirsrv@localhost.service

Backing Up Individual Databases

$ db2ldif -V -Z localhost \
    -n <database> \
    -a <database>.ldif

Note: The output directory must be writable by dirsrv user.

Backing Up the Entire Instance

Backup the server files with the following command:

$ tar czvf slapd-localhost.tar.gz -C / \
    etc/dirsrv/slapd-localhost \
    etc/dirsrv/ssca \
    etc/sysconfig/dirsrv-localhost \
    var/lib/dirsrv/slapd-localhost \

See Also