Reputation: 14505
I'm using a mounted remote volume on Windows which keep all the source code. The workspace is rooted at this remote volume.
Since the remote volume has limited storage and is slow, can I store the versioning files/DBs to another location so that they are on my local disks while source code are on the mounted volume? It's Perforce Helix.
Upvotes: 2
Views: 264
Reputation: 71434
The server's files are stored in P4ROOT
. If you're running the server as a Windows service, you set this with p4 set
:
p4 set -S Perforce P4ROOT=C:\whatever\location
If you're using a local DVCS server, look at your P4CONFIG
file (probably p4config.txt
in your init root):
P4IGNORE=p4ignore.txt
P4CHARSET=none
P4INITROOT=$configdir
P4USER=samwise
P4PORT=rsh:p4d.exe -i -J off -r "$configdir\.p4root"
P4CLIENT=samwise-dvcs-1509687817
The -r
option in your P4PORT=rsh:...
string is what determines the P4ROOT
for commands you run against your local server.
In either case, when you update P4ROOT
, you must move your files from the old P4ROOT
at the same time; otherwise the next time p4d
starts it will look in the new P4ROOT
location, find nothing there, and initialize a new empty server instance.
Upvotes: 4