---
name: "restoreconfig"
section: "8"
platform: "linux"
package: "389-ds-base-legacy-tools"
version: "1.4.0.21-1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/restoreconfig"
---

# restoreconfig(8)

Directory Server script for restoring the Admin Server configuration

## NAME

restoreconfig - Directory Server script for restoring the Admin Server configuration

## SYNOPSIS

restoreconfig \[ -Z serverID \] \[-h\]

## DESCRIPTION

Restores the most recently saved Admin Server configuration information to the NetscapeRoot partition under the /etc/dirsrv/slapd-instance\_name/ directory.

## OPTIONS

A summary of options is included below:

- **-Z *Server Identifier***

  The server ID of the Directory Server instance.  If there is only  one instance on the system, this option can be skipped.

- **-h**

  Display the usage.

## EXAMPLE

- restoreconfig -Z instance2

  ## DIAGNOSTICS

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

## AUTHOR

restoreconfig was written by the 389 Project.

## REPORTING BUGS

Report bugs to https://pagure.io/389-ds-base/new\_issue

## COPYRIGHT

Copyright © 2018 Red Hat, Inc.
