欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Perforce Server命令行备份及恢复

程序员文章站 2022-07-13 18:05:31
...
1 产生CheckPoint文件
SET P4ROOT=C:\Program Files\Perforce\Server //Your P4 server working folder
SET P4PORT=1666                             //P4 port
SET P4USER=jacky                            //Admin user
SET P4PASSWD=******                         //Password

p4 admin checkpoint                         //backup
PAUSE


2 备份相关文件
C:\Program Files\Perforce\Server\depot\*.*
C:\Program Files\Perforce\Server\checkpoint.*
C:\Program Files\Perforce\Server\journal.*


3 复制备份文件到目标服务器目录,例如
d:\Program Files\Perforce\Server\depot\*
d:\Program Files\Perforce\Server\*


4 更新
SET P4ROOT=d:\Program Files\Perforce\Server
SET P4PORT=1666
SET P4USER=jacky
SET P4PASSWD=******

p4d -jr checkpoint.5
PAUSE