Does anyone has the experience of using the new p4 replicate command in their Perforce back-up /restore script?

StackOverflow https://stackoverflow.com/questions/3014781

문제

we recently performed an upgrade of our whole perforce system to 2009.02

During this exercise, we noticed that the back-up /restore process that was installed here by the Perforce consultant a year ago was not completely working. Basically, the verify command has never worked (scary !).

As we are obliged to revisit our Back-Up/Restore scripts, I was toying with the idea of using the new p4 replicate command. The idea is to use it alongside an rsync of the data files, so that in case of crash we will lose at worst an hour of work (if we execute them every hour).

Does anyone has the experience or an example of back-up/restore scripts using the p4 replicate command of the 2009.02 version ?

Thanks,

Thomas

도움이 되었습니까?

해결책

Your question is almost one year old, but if you are still curious, I implemented exactly what you are talking about. I did it around the time you asked the question, but I didn't know about this site. rsync'ing along metadata replication works great - we still use it in production. The replica age varies, but most of the time it is less than several minutes.

--Mike

다른 팁

FWIW, in the latest version 2010.2 the p4 pull command copies the versioned files as well as the metadata, so there's no need for a separate rsync.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top