Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

P4 CLI Documentation | 2025.2

# p4 restore

Restore old archived revisions from an archive depot.

## Syntax

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

Syntax and naming 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

Option | Description
--- | ---
`-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`

Your search for returned results