[p4] Backup procedure help required - script for Perforce in Windows (DOS/VBS)?

Sheizaf, Yariv yariv.sheizaf at sap.com
Sat Jul 28 23:23:52 PDT 2007


Hi,

The basic DOS batch I often use is:

REM Database is located on D: drive
D:  

REM database is located in d:\p4server
cd p4server 		

REM Delete journal files, except for the active one named "journal"
del journal.1*
del journal.2*
del journal.3*
del journal.4*
del journal.5*
del journal.6*
del journal.7*
del journal.8*
del journal.9*

REM delete exist checkpoint file
del checkpoint.* 

REM create a new checkpoint file, truncate the journal file
p4d -jc -z

REM verify database consistency with the repository.   
REM NOTE: Can take a lot of time. In big databases run it separately
P4 verify -q //...  > p4verify.log



Run the above batch every night using Windows scheduler. Verify that the
process is completed before the backup process (to external media) is
started.

Regards,

Yariv Sheizaf
SAP - SBS Cyprus Engineering Services TL
Phone  +972-9-7779643
Mobile  +972-54-2277586
   

*********************************



More information about the perforce-user mailing list