Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using pmrep in Script/Batch File to Restore Repository

Status
Not open for further replies.

suchit

Programmer
Aug 11, 2006
17
0
0
CA
Hi,

I was able to backup a respoitory into a backup file.
But i am unable to understand how can I restore using the same backup file?

The document here


says that pmrep restore is a command. But this manual is for version 5. I am using version 7.1.2. How can I don the same in this version?

Thanks in advance!
 
Hi,

I was able to resolve this. Actually, if you need to restore a repository you need to use pmrepagent and not pmrep.

so you can use,

$ pmrepagent restore (options)

where, (options) are

-r <repository name>
-t <database type>
-u <database user name>
[-p <database password> |
-P <database password environment variable>]
[-m (trusted connection, valid for MSSQL Server only)]
-c <database connect string>
[-d <codepage>]
-h <host name>
-o <port number>
[-g create global repository]
-i <input file name>
[-z repository creation parameters]
[-v <verify repository user name>]
[-x <verify password> |
-X <verify password environment variable>]
[-w (remove user-name-login mapping if un-registering external module)]
[-y (enable object versioning)]
[-b (skip workflow/session logs)]
[-j (skip deploy group history)]
[-q (skip MX data)]
[-s <Array Operation Size>]

-su
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top