Overview
The File System Synchronizer job in Encodify allows you to link a module with an external file system. Each file in the external system is represented as an individual module item within Encodify. This scheduler job regularly scans the linked file structure for changes and automatically synchronises them with the module, ensuring that your module reflects the current state of the external file system.
Note: If the root folder of the external file system contains no files or subfolders, the job will not run. To prevent issues, ensure an empty folder exists in the root if the directory is cleared.
Parameters
The table below provides an overview of parameters supported for the File System Synchronizer Job
Parameter | Description |
---|---|
| Name of the scheduler job to be executed. You may use a custom name instead of |
| Class that performs the synchronizer job: |
| ID(s) of the module(s) to synchronize. Multiple IDs can be separated by commas. |
| ID(s) of the site(s) for which synchronization should occur. Multiple site IDs can be separated by commas. Some jobs ignore this parameter and apply to all sites. |
| Interval in seconds at which the job will re-run. |
| If set to |
Example Configuration
The below is an example of the File System Synchronizer Job
joblist=FileSystemSynchronizer
job.FileSystemSynchronizer.type=dk.encode.ebms.core.file.externalFileSystem.ExternalFSSyncJob
job.FileSystemSynchronizer.param.moduleId=101,102
job.FileSystemSynchronizer.siteId=1
job.FileSystemSynchronizer.interval=300
job.FileSystemSynchronizer.param.isDetectingOfEfsIdentifierEnabled=true
Explanation:
This example synchronises modules with IDs
101
and102
for site1
.The job runs every 300 seconds (5 minutes).
Synchronisation only occurs if the
.efsIdentifier
file exists in the root folder.