Migration using p4 zip/unzip

The 'p4 zip' and 'p4 unzip' commands can be used to transfer data between perforce servers.  

Exporting data with p4 zip

p4 zip Command

The p4 zip command is used like this:

> p4 zip -o foo //...

This p4 zip command will zip up the entire server's data with all revisions into a file called 'foo'

It is also possible to use a remote spec with p4 zip (see Migration using remote specs and p4 fetch/push for more info on creating a remote spec):

> p4 zip -o foo -r myremotespec

For more information see the P4 Command Reference.

Importing Data with p4 unzip

p4 unzip Command

The p4 unzip command is used like this:

> p4 unzip -i foo

This p4 zip command will unzip the file called 'foo' into the destination server.

It is also possible to run p4 unzip in dry-run mode without actually making changes:

> p4 unzip -i foo -n

For more information see the P4 Command Reference.