Command Reference > pmrep Command Reference > Restore
  

Restore

Restores a repository backup file to a database. The target database must be empty.
The pmrep Restore command uses the following syntax:
restore

-u <domain_user_name>

[-s <domain_user_security_domain>]

[-p <domain_password> |

 -P <domain_password_environment_variable>]

-i <input_file_name>

[-g (create global repository)]

[-y (enable object versioning)]

[-b (skip workflow and session logs)]

[-j (skip deployment group history)]

[-q (skip MX data)]

[-f (skip task statistics)]

[-a (as new repository)]

[-e (exit if domain name in the binary file is different from current domain name)]
The following table describes pmrep Restore options and arguments:
Option
Argument
Description
-u
domain_user_name
Required. User name.
-s
domain_user_security_domain
Required if you use LDAP authentication. Name of the security domain that the user belongs to. Default is Native.
-p
domain_password
Optional. Password. You can use the -p or ‑P option, but not both. If you do not use the -p or -P option, pmrep prompts you for the password.
-P
domain_password_
environment_variable
Optional. Password environment variable. You can use the -p or ‑P option, but not both. If you do not use the -p or -P option, pmrep prompts you for the password.
-i
input_file_name
Required. Name of the repository backup file. Use a file name and path local to the Repository Service.
-g
-
Optional. Promotes the repository to a global repository.
-y
-
Optional. Enables object versioning for the repository.
-b
-
Optional. Skips tables related to workflow and session logs during restore.
-j
-
Optional. Skips deployment group history during restore.
-q
-
Optional. Skips tables related to MX data during restore.
-f
-
Optional. Skips task statistics during restore.
-a
-
Optional. Creates new internal folder IDs for folders in the restored repository. This enables you to copy folders and deployment groups between the original repository and the restored repository. If you do not use -a, you cannot copy folders and deployment groups between the original and restored repositories.
-e
-
Optional. Exits if domain name in the binary file is different from current domain name

Example

The following example restores a repository as a versioned repository and specifies the administrator user name and password to retain the LDAP security module registration:
restore -u administrator -p password -i repository1_backup.rep -y