1DB2BAK.PL(8)                System Manager's Manual               DB2BAK.PL(8)
2
3
4

NAME

6       db2bak.pl - Directory Server perl script for creating a backup
7

SYNOPSIS

9       db2bak.pl  [-Z serverID] [-D rootdn] { -w password | -w - | -j filename
10       }  [-t dbtype] [-a backupdir] [-A backupdir] [-P protocol] [-h]
11

DESCRIPTION

13       Creates a backup of  the  Directory  Server  database.   The  Directory
14       Server must be started prior to running this script.
15

OPTIONS

17       A summary of options is included below:
18
19       -Z Server Identifier
20              The  server  ID  of  the Directory Server instance.  If there is
21              only one instance on the system, this option can be skipped.
22
23       -D Root DN
24              The Directory Manager DN, or root DN.   If  not  specified,  the
25              script  will  search  the  server instance configuration for the
26              value.
27
28       -w password
29              The rootdn password.
30
31       -w -
32              Prompt for the rootdn password.
33
34       -j password filename
35              The name of the file that contains the root DN password.
36
37       -t database type
38              The backend database type (default: ldbm database).
39
40       -a backupdir
41              The directory where the backup should be stored.  This directory
42              is  a  symbolic  link  to  the actual backup files located under
43              "nsslapd-bakdir" directory that is set in the "cn=config" entry.
44
45       -A backupdir
46              This is similar to -a, except that a sub-directory of  backupdir
47              will  be  created for the backup, and the name of the sub-direc‐
48              tory will be a timestamp of the form server-instance-date_time.
49
50       -P Protocol
51              The connection protocol to  connect  to  the  Directory  Server.
52              Protocols  are STARTTLS, LDAPS, LDAPI, and LDAP.  If this option
53              is skipped, the most secure protocol that is available is  used.
54              For LDAPI, AUTOBIND is also available for the root user.
55
56       -h
57              Display usage
58

EXAMPLE

60       db2bak.pl  -Z  instance1  -D  'cn=directory  manager'  -w  password  -a
61       /LDAP/backups/20130305 -P LDAPI
62
63              Note: LDAPI must be enabled to use this protocol.  If  LDAPI  is
64              not available it will default to next strongest/available proto‐
65              col automatically.
66

DIAGNOSTICS

68       Exit status is zero if no errors occur.  Errors result  in  a  non-zero
69       exit status and a diagnostic message being written to standard error.
70

AUTHOR

72       db2bak.pl was written by the 389 Project.
73

REPORTING BUGS

75       Report bugs to https://pagure.io/389-ds-base/new_issue
76
78       Copyright © 2017 Red Hat, Inc.
79
80
81
82                                March 31, 2017                    DB2BAK.PL(8)
Impressum