p4 export
Extract journal or checkpoint records.
Syntax
p4 export -c token [-J prefix] [-f] [-l lines] [-F filter] [-T tableexcludelist] [-P filterpattern] p4 export -j token [-J prefix] [-f] [-l lines] [-F filter] [-T tableexcludelist] [-P filterpattern] p4 export -j token [-J prefix] -r [-F filter] [-T tableexcludelist] [-P filterpattern]
Description
This command reports checkpoint and journal metadata from a Helix Core Server server. With no options, the records are reported in tagged form.
Some fields are added to the tagged output to indicate either transactional consistency, or to indicate the end of the journal.
To filter database tables out of the exported data, use the
-T
option with a list of tables whose data you wish to
exclude. To exclude data from multiple tables, separate the table names
by spaces or commas. The table names must begin with "db.
",
following the naming convention used for database files in the server
root directory. If you separate the table exclusion list with spaces, you
must enclose the list in quotes.
Options
|
Specifies a checkpoint number or position token of the form
|
|
Format the output so that non-textual datatypes are formatted appropriately. |
|
Limit output to records that match the specified
|
|
Specify a journal number or position token of the form
|
|
Specifies a filename prefix for the journal, such as that used
with |
|
Limit output to the specified number of
|
|
Limit output to records that match the specified filter pattern.
Multiple filter patterns can be specified with multiple
Each
The first character specifies whether the records are included
or excluded (" The mechanism by which this filtering is implemented is the same
as that which is used by the |
|
Display raw journal output; this argument applies to journals only. |
|
Supply a list of database tables (for example,
Limit output to records that match the specified
|
|
See Global options. |
Usage notes
Can File Arguments Use Revision Specifier? | Can File Arguments Use Revision Range? | Minimal Access Level Required |
---|---|---|
N/A |
N/A |
available to an service user |
Compressed journals or checkpoints are not supported.
Examples
|
Run |
Related commands
To replicate metadata from one server to another |
|
To pull journal records (and file content) from a master server to a replica server |