; Note: comment lines in .INI files always start with a semicolon [Template] Description=This template can be used to build jobs that in a real-time will replicate files accros 2 directories on two different computers [Variables] ; Key values that have their name enclosed in % signs will be used for ; template wizard questionnaire and substitution variables ; such key values should consist of 2 comma separated parts: ; 1. Field Edit Style (EDIT, YES/NO, FILE BROWSE, ; DIR BROWSE, PROCESS BROWSE, ; FTP BROWSE, MAIL PROFILE LIST, ; REMOTE FILE BROWSE, REMOTE DIR BROWSE, ; REMOTE AGENT LIST, DB PROFILE LIST) ; 2. Prompt ; ; Example: %VAR%=EDIT,What is the name of the service that you want to monitor? ; ; Key values that don't have their name enclosed in % signs will be used for ; job properties (See online help on "Job property names for use with JDL command" ; topic for more details). ; ; Example: DAY_NUMBER=1 %LOCAL_DIR%=DIR BROWSE,Name of the directory containing file(s) that you want to replicate: %AGENT%=REMOTE AGENT LIST,What is the name of the 24x7 Remote Agent on the target computer? %REMOTE_DIR%=REMOTE DIR BROWSE,Name of the target directory on the remote computer: JOB_TYPE=S LOG=Y ASYNC=Y SCHEDULE_TYPE=S SKIP=N DESCRIPTION=This job provides real-time file mirroring. When a file has been modified or added in the origin directory, the job automatically copies it to the target directory on the remote computer running 24x7 Remote Agent. ; Notes: The script bellow can include substitution variables. ; Substitution variables must be specified in %VAR% format ; where VAR is the variable name. ; ; Everything after the next line will be used for the template script. ;======================================================================================== [Body] Dim change_found, boolean // Loop forever LoopUntil change_found, END_LOOP // Wait for new changes in %LOCAL_DIR%. DirWaitForUpdate "%LOCAL_DIR%", 0, change_found // Replicate files SyncRemoteDir "LOCAL", "%AGENT%", "%LOCAL_DIR%", "%REMOTE_DIR%", & TRUE, FALSE, TRUE, FALSE // Reset change flag Set change_found, FALSE END_LOOP: