Perl Scripts
272 Red Hat Directory Server Configuration, Command, and File Reference • May 2005
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)
• logconv.pl (Log converter)
• migrateInstance7 (Migrate to Directory Server 7.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)
• ns-newpwpolicy.pl (Add attributes for fine-grained password policy)
• template-cl-dump.pl (Dump and decode changelog)
• template-repl-monitor.pl (Monitor replication status)
bak2db.pl (Restore database from backup)
Restores a database from a backup.
Syntax
NOTE The Perl scripts that are bundled with Directory Server require the
use of
nsPerl
, which is included in the
serverRoot/bin/slapd/admin/bin
directory. Be sure to change to this
directory before you run any of the Perl scripts:
cd serverRoot/bin/slapd/admin/bin
./perl PerlScriptName Arguments
Perl script:
bak2db.pl [-v] -D rootdn -w password [-a
backupDirectory] [-t databaseType] -n [backend]