• No results found

The following examples are for pre-populate EDB file, copy, export, integrity check, and list (i.e., report information about the database).

Example 1:Pre-populate the EDB file, log and temp path fields of the Open Source dialog. SPGRE c:\data.edb -l c:\edb -t c:\edb

<Operation> Explanation

Pre-populate the EDB file, log and temp path fields of the open source dialog

[Operation options] Explanation

Not applicable

<Source Store> Explanation

c:\data.edb Path to the EDB file

[Source options] Explanation

-l c:\edb Log file path

-t c:\edb Temporary file path

Example 2:Copy pcuser1's Inbox and all subfolders from c:\pcdata.edb to the Inbox in c:\target.pst. c:\out1.txt will contain the copy report.

SPGRE -copy -r -o c:\out1.txt c:\pcdata.edb -l c:\edb -t c:\edb pcuser1\inbox c:\target.pst $ROOT

<Operation> Explanation

-copy Perform a copy operation

[Operation options] Explanation

-r Copy subfolders

-o c:\out1.txt Output report file name

<Source Store> Explanation

c:\p cdata.edb Path to the database file name

[Source options] Explanation

-t c:\edb Temporary file path

<Source Folder Path> Explanation

pcuser1\inbox Source folder to copy

<Target Store> Explanation

c:\target.pst Target data store

<Target Folder Path> Explanation

$ROOT Copy to the root folder of the

data store

Example 3:Copy pcuser1's Inbox and all subfolders from c:\pcdata.edb to user1's Inbox on Microsoft Exchange Server pcpdc. c:\out1.txt will contain the copy report.

SPGRE -copy -r -o c:\out2.txt c:\pcdata.edb -t c:\ pcuser1\inbox pcpdc;user1 inbox

<Operation> Explanation

[Operation options] Explanation

-r Copy subfolders

-o c:\out2.txt Output report file name

<Source Store> Explanation

c:\p cdata.edb Path to the database file name

[Source options] Explanation

-t c:\ Temporary file path

<Source Folder Path> Explanation

pcuser1\inbox Source folder to copy

<Target Store> Explanation

pcpdc;user1 Target data store (Microsoft

Exchange Server name and logon ID)

<Target Folder Path> Explanation

inbox Copy to the inbox

Example 4:Export pcuser1's mailbox and all subfolders from pcdata.edb as text to c:\export SPGRE -export -r -f:txt -o c:\out3.txt c:\pcdata.edb -t c:\ pcuser1 c:\export

<Operation> Explanation

-export Perform an export operation

[Operation options] Explanation

-f:txt Messages will be exported as .txt

-o c:\out3.txt Export report file name

<Source Store> Explanation

c:\p cdata.edb Path to the database file name

[Source options] Explanation

-t c:\ Temporary file path

<Source Folder Path> Explanation

pcuser1 Source folder to copy

<Target Store> Explanation

NA Target data store

<Target Folder Path> Explanation

c:\export Root folder of the export

Example 5:Provides information on the databases including a list of mailboxes.

Tip:When performing the -list operation, use the -o filename option in order to see the mailboxes. Otherwise, the operation will proceed so fast that you won't be able to see the mailboxes.

SPGRE -list -o c:\mblist.txt c:\priv1.edb

<Operation> Explanation

-list Perform a list operation

[Operation options] Explanation

<Source Store> Explanation

c:\priv1.edb Path to the database file name

Example 6:Provides information on the databases including a list of mailboxes using mailbox criteria.

Tip:When performing the -list operation, use the -o filename option in order to see the mailboxes. Otherwise, the operation will proceed so fast that you won't be able to see the mailboxes.

SPGRE -list -o c:\mblist.txt c:\priv1.edb –m pcuser1;pcuser2

<Operation> Explanation

-list Perform a list operation

[Operation options] Explanation

-o c:\mblist.txt Output report file name <Source Store> Explanation

c:\priv1.edb Path to the database file name

[Source options] Explanation

-m pcuser1;pcuser2 Only open pcuser1 and pcuser2 mailboxes

Example 7:Perform an integrity check on an entire EDB. SPGRE -integ -r -o c:\output.txt c:\priv1.edb $ROOT

<Operation> Explanation

-integ Perform an integrity check on a

database [Operation options] Explanation

-o c:\output.txt Output report file name

<Source Store> Explanation

c:\priv1.edb Path to the database file name

<Source Folder Path> Explanation

$ROOT Root of the EDB (entire EDB)

Example 8:Copy a folder from a pub EDB to public folders (only copy messages dated after 01/01/2000)

SPGRE -copy -r -o c:\out2.txt -da 01/01/2000 c:\pub1.edb newsgroups pc2000;administrator - pub $ROOT

<Operation> Explanation

-copy Perform a copy operation

[Operation options] Explanation

-r Copy subfolders

-o c:\out2.txt Output report file name

-da 01/01/2000 Only copy messages that were

created after this date <Source Store> Explanation

c:\pub1.edb Path to the database file name

<Source Folder Path> Explanation

newsgroups Source folder to copy

pc2000;administrator Target data store (Microsoft Exchange Server name and logon ID)

<Target Options> Explanation

-pub Copy to public folders

<Target Folder Path> Explanation

$ROOT Public folders root

Important:

All paths with spaces need to be in quotes. If a PST does not exist in the target.

SPGRE will create a PST file compatible with Microsoft Office Outlook 97, 98, 2000, and XP. Example 9:Perform an integrity check on an entire Content Analysis Store.

SPGRE -integ -r -o c:\out1.txt c:\source.cas $ROOT

<Operation> Explanation

-integ Perform an integrity check on a

database

[Operation options] Explanation

-r check subfolders

-o c:\out1.txt output report file name

<Source Store> Explanation

c:\source.cas Path to the Content Analysis Store file name

<Source Folder Path> Explanation

$ROOT Root of the CAS (entire CAS)

<Operation> Explanation

-copy perform a copy operation

[Operation options] Explanation

-r copy subfolders

-o c:\out2.txt output report file name

<Source Store> Explanation

c:\source.cas path to the Content Analysis Store file name

<Source Folder Path> Explanation

Profile1 source folder to copy

<Target Store> Explanation

c:\target.pst target data store

<Target Folder Path> Explanation

$ROOT copy to the root folder of the

data store

Example 11:Export Profile2 from source.cas as text to c:\export SPGRE -export -r -f:txt -o c:\out3.txt c:\source.cas Profile2 c:\export

<Operation> Explanation

-export perform a export operation

[Operation options] Explanation

-f:txt messages will be exported as .txt

-o c:\out3.txt export report file name

<Source Store> Explanation

c:\source.cas path to the Content Analysis Store file name

<Source Folder Path> Explanation

Profile2 source folder to copy

<Target Store> Explanation

NA target data store

<Target Folder Path> Explanation

Overview

This section shows you how to create reports, view the statistics in the generated reports, and save the reports as either tab-delimited or comma-delimited text files. Any data store opened as a source can be the source of a report.

Note:If you use the "Mailbox Criteria (optional)" box on the Select Source Files dialog box or the Source Path Selection page of the DataWizard, only EDB mailboxes containing your entry (or entries) are displayed on the Source Pane. Any mailboxes which do not match the entered string (s) will not appear in the Source Pane and will not be included in any subsequent tasks (such as searching, copying, and exporting of the entire database). For more information, see"Mailbox Criteria" on page 34.

Related documents