Perforce-P4 sync query-new work space

112 Views Asked by At

I have synced files around 1 Tb from one server to another and set up P4, but I have a different workspace in the new server so if i initiate a p4 sync in new server, Will it add only the difference or will it duplicate the files?(source remains the same)

2

There are 2 best solutions below

4
On BEST ANSWER

Since you created a new workspace, and P4 doesn't know that you have the files already existing on your new environment, it will pull over all of those files.

If you kept the same workspace name, (by default) it would pull over only "new" files (because it thinks you already have the files you previously synced).

1
On

If the workspace map is the same as the old client, and there have been no changes, you can do a p4 sync -k. This updates the metadata on the server, without doing the file transfers. If there have been changes, you'll have to force sync those files to get the correct revision.