Moving depots in a production environment
Follow these steps to move a depot in a production environment:
- Shut down the server where the depot resides.
- Move the versioned file tree to its new location.
-
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
- Change the map field using the
p4 depot
command.depotname
-
Shut down the server using a command like the following:
$ p4d -p 127.0.0.1:1666 admin stop
- Restart the server normally.