p4 restore

Restore old archived revisions from an archive depot.

Syntax

p4 [g-opts] restore [-n] -D archiveDepot[revRange] ...

Syntax conventions

Description

The p4 restore command transfers archives from a named depot of type archive back to their original locations in a local depot. After being restored, the revisions' action is restored to whatever it was before it was archived.

Set the server.locks.archive configurable to disable server locks when running the p4 restore command.

Options

-D depot

Specify an archive depot from which files are to be restored.

-n

Do not restore files. Report on revisions that would be restored.

g-opts

See Global options.

Usage Notes

Can File Arguments Use Revision Specifier? Can File Arguments Use Revision Range? Minimal Access Level Required

Yes

Yes

admin

  • Storage for the archive depot must be mounted unless you are using the -n option.

Related Commands

To create a depot

p4 depot

To archive files into an archive depot

p4 archive

To obliterate files without archiving them

p4 obliterate