p4 journalcopy
Copies journal data from a master server to the local file system of a standby replica.
Syntax
p4 [g-opts] journalcopy -l
p4 [g-opts] journalcopy -i N [-b wait]
Description
The p4 journalcopy
command has two syntax variants:
- To get a report of the current copy
position from the master’s journal to the replica’s journalcopy, use
p4 journalcopy -l
where the output of the
p4 journalcopy -l
command includes the sequence number, which indicates the byte offset position in the journal that the journalcopy has reached:
Current replica persisted journal state is: Journal 2, Sequence 6510347
- To copy journal data (the journalcopy) to the local file system of a standby replica, use p4 journalcopy -i N with or without the -b option.
An operator or superuser can confirm the state of
a replica by running the p4 journalcopy -l,
p4 pull -l -j,
and p4 pull -l -s
commands.
Options
|
Wait the specified number of seconds before retrying the Setting this option overrides the default value of 60 seconds. For example, to set the value of the startup.N configurable so that the wait time is 30 seconds:
$ p4 -p depot_master_p4port configure set standby#startup.1="journalcopy -i 0 -b 30"
|
|
Repeat the
|
|
Report the current position in the copied journal. |
|
See Global options. |
Usage Notes
Can File Arguments Use Revision Specifier? | Can File Arguments Use Revision Range? | Minimal Access Level Required |
---|---|---|
NA |
NA |
the |
Examples
|
Show information about the current copy position from the master’s journal to the replica’s journal. |
Related Commands
To make a copy of the master’s versioned files. |
|
To retrieve the journal
records from the journalcopy files created by the |
|
To get information about replication status from the point of
view of the master server, use the |
|
To fail over to a new master server | p4 failover |