Moving depots in a production environment

Follow these steps to move a depot in a production environment:

  1. Shut down the server where the depot resides.
  2. Move the versioned file tree to its new location.
  3. Restart the server so that it listens only on localhost (or on some port other than the one you normally use). For example:

    $ p4d -p 127.0.0.1:1666 flags_you_normally_use
  4. Change the map field using the p4 depot depotname command.
  5. Shut down the server using a command like the following:

    $ p4d -p 127.0.0.1:1666 admin stop
  6. Restart the server normally.