Perforce Server命令行备份及恢复

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

猜你喜欢

转载自jacky-dai.iteye.com/blog/1746432