1BAK2DB.PL(8) System Manager's Manual BAK2DB.PL(8)
2
3
4
6 bak2db.pl - Directory Server perl script for restoring a backup
7
9 bak2db.pl -a archivedir [-Z serverID] [-D rootdn] { -w password | -w -
10 | -j filename } [-t dbtype] [-n backendname] [-P protocol] [-h]
11
13 Restores a database from a backup. The Directory Server must be started
14 prior to running this script.
15
17 A summary of options is included below:
18
19 -a archivedir
20 The directory of the archived database.
21
22 -Z Server Identifier
23 The server ID of the Directory Server instance. If there is
24 only one instance on the system, this option can be skipped.
25
26 -D Root DN
27 The Directory Manager DN, or root DN. If not specified, the
28 script will search the server instance configuration for the
29 value.
30
31 -w password
32 The rootdn password.
33
34 -w -
35 Prompt for the rootdn password.
36
37 -j password filename
38 The name of the file that contains the root DN password.
39
40 -t database type
41 The backend database type (default: ldbm database).
42
43 -n Backend Name
44 The name of the LDBM database to restore. Example: userRoot
45
46 -P Protocol
47 The connection protocol to connect to the Directory Server.
48 Protocols are STARTTLS, LDAPS, LDAPI, and LDAP. If this option
49 is skipped, the most secure protocol that is available is used.
50 For LDAPI, AUTOBIND is also available for the root user.
51
52 -h
53 Display usage
54
56 bak2db.pl -a /LDAP/backups/20130305/ -D 'cn=directory manager' -w pass‐
57 word -n userRoot -P LDAPS
58
59 Note: security must be enabled to use protocol LDAPS. If LDAPS
60 is not available it will default to next strongest/available
61 protocol automatically.
62
63 bak2db.pl -a /LDAP/backups/20130305/ -Z instance2 -w password -n exam‐
64 ple -P LDAPI
65
67 Exit status is zero if no errors occur. Errors result in a non-zero
68 exit status and a diagnostic message being written to standard error.
69
71 bak2db.pl was written by the 389 Project.
72
74 Report bugs to https://pagure.io/389-ds-base/new_issue
75
77 Copyright © 2017 Red Hat, Inc.
78
79
80
81 March 31, 2017 BAK2DB.PL(8)