p4 restore

Synopsis

Restore old archived revisions from an archive depot.

Syntax

p4 [g-opts] restore [-n] -D depot file[revRange] ...

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