p4 restore
Restore old archived revisions from an archive depot.
Syntax
p4 [g-opts] restore [-n] -D archiveDepot[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
|
Specify an archive depot from which files are to be restored. |
|
Do not restore files. Report on revisions that would be restored. |
|
See Global options. |
Usage notes
Can File Arguments Use Revision Specifier? | Can File Arguments Use Revision Range? | Minimal Access Level Required |
---|---|---|
Yes |
Yes |
|
- Storage for the archive depot must be mounted unless you are using
the
-n
option.
Related commands
To create a depot |
|
To archive files into an archive depot |
|
To obliterate files without archiving them |