[p4] unix copying a depot
Evgeny
evgeny.zislis at gmail.com
Wed May 14 14:01:25 PDT 2008
Basically, when you copy your depot with "cp -r my_depot
my_depot_copy" I guess that you my_depot has many db.* files in it.
When you copy these files like this, from a running server -- there is
a great chance that these files will get corrupt or incomplete at
best.
That's why it's much more safe to use backup and restore procedures,
for example restoring from checkpoint.
And you won't get corrupt data in the my_depot_copy server.
On Wed, May 14, 2008 at 8:38 PM, Listman <listman at burble.net> wrote:
>
> On May 14, 2008, at 5:55 AM- May 14, 2008, Robert Cowham wrote:
>
>>> Can I unix copy an existing depot to a new location and start
>>> a new p4d daemon on a different port and start working with
>>> it? Are there any absolute path issues I might run into?
>>
>> If your depots use the default Map syntax, eg
>>
>> Map: depot/...
>>
>> Then this is relative to P4ROOT dir and you will have no problems.
>>
>> It is possible to make this an absolute path (eg in Unix or Windows
>> syntax),
>> in which case you would perhaps need to edit it.
>>
>>> I just want to run some tests on this depot copy, can i just
>>> use the free 2 license version of p4 to do my trials? There
>>> are 12 clients in the original depot that i copied. Is it
>>> possible to just delete those
>>> 12 and add a couple of new ones to play with?
>>
>> Yes that's not a problem to use unlicensed.
>>
>> It is usally not difficult to remove the client lines from the
>> checkpoint
>> (look for db.domain entries) before restoring.
>>
>
> but i wasn't planning on restoring from a checkpoint..
>
> as i mentioned, i'd like to do the following:
>
> > cp -r my_depot my_depot_copy
> > cd my_depot_copy
> > set P4PORT 49494
> > p4d -p localhost 49494
>
> and then create a new working copy
>
> > cd ..
> > mkdir work2
> > cd work2
> > p4 client my_new_client (make the necessary changes to the client)
> > p4 typemap (add the necessary typemap lines)
> > p4 sync
>
> should this work?
>
> how do i delete the existing clients in my_depot_copy so that i can
> use the free 2 license server to run some test?
>
> thx again.
>
>
>
>
>
>
>
> _______________________________________________
> perforce-user mailing list - perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>
More information about the perforce-user
mailing list