Perl Scripts
This section covers the following scripts:
•
bak2db.pl (Restore database from backup)
•
db2bak.pl (Create backup of database)
•
db2index.pl (Create and generate indexes)
•
db2ldif.pl (Export database contents to LDIF)
•
ldif2db.pl (Import)
•
migrateInstance6 (Migrate to Directory Server 6.x)
•
ns-accountstatus.pl (Establish account status)
•
ns-activate.pl (Activate an entry or group of entries)
•
ns-inactivate.pl (Inactivate an entry or group of entries)
bak2db.pl (Restore database from backup)
Restores a database from a backup.
Syntax
Perl script (UNIX and
Windows):
Options
The script
task. The entry is generated based upon the values you provide for each option.
Currently, the only possible database type is
-D
-w
-a
bak2db.pl [-v] -D rootdn -w password -a
backup_directory] [-t databasetype]
creates an entry in the directory that launches this dynamic
bak2db.pl
User DN with root permissions, such as Directory Manager. The default is the
DN of the directory manager which is read from the nsslapd-root attribute
under cn=config.
Password associated with the user DN.
Directory of the backup files.
.
ldbm
Chapter 8
Command-Line Scripts
Perl Scripts
239