[p4] Automated Remote Restores

Shawn Hladky p4shawn at gmail.com
Tue Mar 11 20:11:08 PDT 2008


You might look at the new undoc command 'p4 admin import'.

On Tue, Mar 11, 2008 at 5:29 PM, Dix, John <JDix at medmanagesystems.com>
wrote:

> Hello I am working on some code that will allow me to automate the
> Perforce db restoration process on a Windows 2003 server using Python. I
> want to do this as part of my Backup script where after I rsync the
> files over I then do a restore to a test Perforce server.
>
>
>
> My thoughts are to do this:
>
> 1.       From backup script, emotely spawn an instance of Python.exe on
> the target server which then executes script which does an automated
> restore.
>
> 2.       Copy the log file back and scan for an error token.
>
> 3.       Send email with pass or in the case of fail, with the log file
> as an attachment.
>
> Does anyone have a better way of doing this? I have never used Python to
> spawn external processes on a remote networked system before so
> suggestions are helpful. J
>
>
>
> Thanks!
>
> -J
>
> _______________________________________________
> 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