Sun Java System Application Server Platform Edition 8.1 2005Q2 Update 2 Reference Manual

## restore-domain(1)

NAME | SYNOPSIS | DESCRIPTION | OPTIONS | OPERANDS | EXAMPLES | EXIT STATUS | SEE ALSO

#### NAME

restore-domain– restores files from backup

#### SYNOPSIS

`restore-domain` [––domaindir domain_directory] [––filename backup_filename] [domain_name]

#### DESCRIPTION

This command restores files under the domain from a backup directory. The restore-domain command is supported in local mode only.

#### OPTIONS

`––domaindir`

  This option specifies the parent directory of the domain upon which the command will operate. The default is install_dir/domains.

`––filename`

  This option reads the files for this restore from either the directory or from a zip file, depending upon the nature of the file. If this option is set, then the backup is read directly from the given location. This option is required if the backup directoryr is not set. There is no default.

#### OPERANDS

domain_name

  This is the name of the root directory of the domain to restore. The default is all domains under `backupdir`.

#### EXAMPLES

##### Example 1 Using restore-domain

    asadmin>restore-domain --domaindir directory1 --filename file11
    The command restore-domain executed successfully.

#### EXIT STATUS

0

  command executed successfully

1

  error in executing the command

#### SEE ALSO

backup-domain(1), list-backups(1)

J2EE SDK 1.4 Last Revised July 2005

NAME | SYNOPSIS | DESCRIPTION | OPTIONS | OPERANDS | EXAMPLES | EXIT STATUS | SEE ALSO

- © 2010, Oracle Corporation and/or its affiliates