OpenR66 Rule Configuration File
rule
- comment:string Optional
- idrule:nonEmptyString
Rule ID
- hostids
List of Host Ids allowed to use this rule. No Host Id means all allowed.
- mode:nonNulInteger
1=SEND 2=RECV 3=SEND+MD5 4=RECV+MD5
- recvpath:nonEmptyString Optional default="IN"
Default Receive Directory
- sendpath:nonEmptyString Optional default="OUT"
Default Send Directory
- archivepath:nonEmptyString Optional default="ARCH"
Default Archive Directory
- workpath:nonEmptyString Optional default="WORK"
Default Working Directory
- rpretasks
List of tasks -if any- to execute before transfer on receiver side
- rposttasks
List of tasks -if any- to execute after transfer on receiver side
- rerrortasks
List of tasks -if any- to execute after an error on receiver side
- spretasks
List of tasks -if any- to execute before transfer on sender side
- sposttasks
List of tasks -if any- to execute after transfer on sender side
- serrortasks
List of tasks -if any- to execute after an error on sender side
Where List of tasks is
tasks
task Optional unbounded
- type:nonEmptyString
Type of Task: LOG, MOVE, MOVERENAME, COPY, COPYRENAME, EXEC, EXECMOVE, LINKRENAME, VALIDFILEPATH, DELETE, TAR, ZIP
- path:nonEmptyString
Argument -often a path- applied to the task where substitution can occur like #TRUEFULLPATH#, #FILESIZE#, #RULE#, #DATE#, #TRANSFERID#, ...
- delay:nonNegInteger
Maximum delay for execution of the task in ms
Example:
<rule>
<idrule>rule2</idrule>
<hostids>
<hostid>hosta</hostid>
<hostid>hostb</hostid>
</hostids>
<mode>2</mode>
<recvpath></recvpath>
<sendpath></sendpath>
<archivepath></archivepath>
<workpath></workpath>
<rpretasks>
<tasks>
<task>
<type>LOG</type>
<path>mon info</path>
<delay>0</delay>
<rank>0</rank>
</task>
<task>
<type>LOG</type>
<path>une autre info</path>
<delay>0</delay>
<rank>1</rank>
</task>
</tasks>
</rpretasks>
<rposttasks>
<tasks>
<task>
<type>LOG</type>
<path>test</path>
<delay>0</delay>
<rank>0</rank>
</task>
<taskno>
<type>EXECRENAME</type>
<path>D:/GG/R66/conf/montest.bat #TRUEFULLPATH# D:\GG\FTP\fredo\a\#TRANSFERID#_#ORIGINALFILENAME# #TRUEFILENAME# #ORIGINALFILENAME# #DATE# #HOUR# #REMOTEHOST# #LOCALHOST# #TRANSFERID# #RANKTRANSFER# #BLOCKSIZE#</path>
<delay>20000</delay>
<rank>0</rank>
</taskno>
<taskno>
<type>COPYRENAME</type>
<path>D:/GG/FTP/fredo/a/#DATE#_#HOUR#_#TRANSFERID#_#REMOTEHOST#_#LOCALHOST#_#ORIGINALFILENAME#_#TRUEFILENAME#_%s_%s</path>
<delay>0</delay>
<rank>0</rank>
</taskno>
</tasks>
</rposttasks>
<rerrortasks>
<tasks>
<task>
<type>LOG</type>
<path>erreur</path>
<delay>1</delay>
<rank>0</rank>
</task>
</tasks>
</rerrortasks>
<serrortasks>
<tasks>
<task>
<type>LOG</type>
<path>erreur</path>
<delay>1</delay>
<rank>0</rank>
</task>
</tasks>
</serrortasks>
</rule>