How do I configure the Sdl.WorldServer.FileTypeSupport.Server.Launcher.exe.config to delete older files on the server where FTS is installed? |
A functionality which cleans the files older than a specified amount of days - per default 30 days - from the <!-- 'Enabled' has true/false values. 'filesOlderThan' Represents the number of days the files should be older than in order to be deleted. Values from 1 to 1000 --> <tempFilesCleaner enabled="true" filesOlderThan=30"> <!-- 'type' Can be 'DAILY' or 'WEEKLY' 'hourOfDay' The hour of day when the cleaner should start running. Ranges from 1 to 24. It is always taken into account, regardless the selected type 'dayOfWeek' The day of week when the cleaner should run - should be set only if type weekly is selected, otherwise is ignored. For Sunday use '0', for Monday use '1', for Tuesday use '2' ... for Saturday use '6' --> <recurrence type="WEEKLY" hourOfDay="1" dayOfWeek="0"/> </tempFilesCleaner> These values can be changed as required::
<!--
'Enabled' has true/false values.
'filesOlderThan' Represents the number of days the files should be older than in order to be deleted. Accepted values from 1 to 1000
'folders' Used to specify the directories that should be cleaned. Multiple folders can be specified separated with';' (eg. folders="C\Temp;C\Windows\Temp")
It is an optional argument. If it is not set, the cleaner will run on the %UserTempFolder%\SDLTempFileManager folder. PLEASE BE CAREFULL WITH THE FOLDERS YOU SELECT FOR CLEANING!!!
-->
<tempFilesCleaner enabled="true" filesOlderThan="30">
<tempFilesCleaner enabled="true" filesOlderThan="30" folders="C:\Users\sdluser\AppData\Local\Temp">
<!--
'type' Can be 'DAILY' or 'WEEKLY'
'hourOfDay' The hour of day when the cleaner should start running. Ranges from 1 to 24. It is always taken into account, regardless the selected type
'dayOfWeek' The day of week when the cleaner should run - should be set only if type weekly is selected, otherwise is ignored.
For Sunday use '0', for Monday use '1', for Tuesday use '2' ... for Saturday use '6'
-->
<recurrence type="WEEKLY" hourOfDay="9" dayOfWeek="0"/>
</tempFilesCleaner>
Per default, the file Sdl.WorldServer.FileTypeSupport.Server.Launcher.exe.config contains the following line as a reference: <tempFilesCleaner enabled='true' filesOlderThan='30' You can replace this line with the parameter of your choice. For instance, by changing the filesOlderThan parameter and by adding the folder path as in the example below: <tempFilesCleaner enabled="true" filesOlderThan="7" folders="C:\Program Files\Idiom\WorldServer\temp">If you want to clean up more than one directory, multiple folders can be specified separated with ';' (eg. folders="C:\Temp;C\Windows\Temp") . For example, you could add this line to address more than one folder: <tempFilesCleaner enabled="true" filesOlderThan="30" folders=D:\worldserver\FileTypeSupportServerShared\DependencyFiles\;W:\test\"> You can also change the recurrence from the default <recurrence type="WEEKLY" hourOfDay="9" dayOfWeek="0"/> (which means, every Sunday at 9:00 AM Server time) to a daily schedule as in this example where the Cleaner will run daily at 3:00 PM, Server time: On the server where FTS is installed, how do I check that the user associated with the FTS Service has access to folders that should be deleted via Garbage collection?
|