Perforce 2000.2 Command Reference (2000.2.cr.1)
<< Previous Chapter
p4 add
Table of Contents
Index
Perforce on the Web
Next Chapter >>
p4 branch

p4 admin


Synopsis

Perform administrative operations on the server

Syntax

p4 [g-opts] admin checkpoint [-z ] [ prefix ]
p4 [g-opts] admin stop

Description

The p4 admin command allows Perforce superusers to perform administrative tasks whether they are on the host running the Perforce server or not.

To stop the server, use p4 admin stop. This will lock the database to ensure that it is in a consistent state upon server restart, and then shut down the Perforce background process. (For NT users, this will work whether you are running Perforce as a server or a service.)

To take a checkpoint, use p4 admin checkpoint [prefix]. This is equivalent to logging in to the server machine and taking a checkpoint with p4d -jc [prefix.] A checkpoint will be taken and the journal will be copied to a numbered file. If a prefix is specified, the files will be named prefix.ckp.n or prefix.jnl.n respectively, where n is a sequence number. If no prefix is specified, the default filenames checkpoint.n and journal.n will be used. Use the -z option to save the checkpoint and journal files in compressed form.

The files will be created in the server root as specified when the Perforce server was started.

Options

-z

For p4 admin checkpoint, save the checkpoint and saved journal file in compressed (gzip) format, appending the .gz suffix to the files.

g_opts

See the Global Options section.

Usage Notes

Can File Arguments Use
Revision Specifier?

Can File Arguments Use
Revision Range?

Minimal Access Level Required

N/A

N/A

super

Examples

p4 admin stop

Stop the Perforce server

p4 admin checkpoint

Create a checkpoint named checkpoint.n, and start a new journal named journal, copying the old journal file to journal.n, where n is a sequence number.

p4 admin checkpoint foo

Create a checkpoint named foo.ckp.n, and start a new journal named journal, copying the old journal file to foo.jnl.n, where n is a sequence number.


Perforce 2000.2 Command Reference (2000.2.cr.1)
<< Previous Chapter
p4 add
Table of Contents
Index
Perforce on the Web
Next Chapter >>
p4 branch
Please send comments and questions about this manual to [email protected].
Copyright 1997, 2000 Perforce Software. All rights reserved.
Last updated: 12/21/00