Configuring Server Synchronization
To make sure that DTDs, authoring tool files and configuration files on the author's computer are always up to date, Content Manager desktop tools automatically synchronize local files with files on the server.
About this task
Procedure
- Locate the file SyncInfo.xml that can be found on the server in the folder $\Author\ASP\ClientConfig\.
- Open this file in a text editor.
The current synchronization settings are shown. E.g.
Please note the use of placeholders. The most commonly used placeholders are:<syncgroup> <!-- The files in this group are always synchronized --> <syncfile serverfolder="~/ClientConfig/" filename="Common.xsd" clientfolder="%DATASOURCEAPPDATA%/Config/ClientConfig/" /> <syncfile serverfolder="~/ClientConfig/" filename="ClientConfig.xml" clientfolder="%DATASOURCEAPPDATA%/Config/ClientConfig/" /> <syncfile serverfolder="~/ClientConfig/" filename="ClientConfig.xsd" clientfolder="%DATASOURCEAPPDATA%/Config/ClientConfig/" /> <syncfile serverfolder="~/ClientConfig/" filename="MetadataConfig.xml" clientfolder="%DATASOURCEAPPDATA%/Config/ClientConfig/" /> <syncfile serverfolder="~/ClientConfig/" filename="MetadataConfig.xsd" clientfolder="%DATASOURCEAPPDATA%/Config/ClientConfig/" /> <syncfile serverfolder="~/ClientConfig/" filename="TemplateSpecification.xml" clientfolder="%DATASOURCEAPPDATA%/Config/ClientConfig/" /> <syncfolder serverfolder="~/DocTypes/" clientfolder="%DATASOURCEAPPDATA%/Config/DocTypes/" /> <syncfolder serverfolder="~/Images/" clientfolder="%DATASOURCEAPPDATA%/Config/Images/" /> <syncfolder serverfolder="~/Preview/" clientfolder="%DATASOURCEAPPDATA%/Config/Preview/" /> <syncfolder serverfolder="~/Resources/" clientfolder="%DATASOURCEAPPDATA%/Config/Resources/" /> </syncgroup>- %DATASOURCEAPPDATA%: the directory on the client where all the users' application data is gathered (e.g. C:\Users\%USERNAME%\AppData\Local\SDL\InfoShare Client\0906178510, where
0906178510is a unique identifier for the repository). - %EDITORLOCATION%: the full path of the XML authoring tool executable on the client computer.
- %DATASOURCEAPPDATA%: the directory on the client where all the users' application data is gathered (e.g. C:\Users\%USERNAME%\AppData\Local\SDL\InfoShare Client\0906178510, where
- For each additional folder or file that should be included in the synchronization process, a new element should be added in the
<syncgroup>element . To synchronize a folder, use the<syncfolder>element. To synchronize a file, use the<syncfile>element. Make sure that you use the same attributes as in the default synchronization elements. - If you want to exclude certain folders or files from synchronization, you should remove their
<syncfolder>or<syncfile>element from the SyncInfo.xml file. - If you want to remove folders or files from the client, a new element can be added in the
<syncgroup>element. To remove a folder, use the<removefolder>element. To remove a file, use the<removefile>element.E.g.<syncgroup> <removefolder clientfolder="%DATASOURCEAPPDATA%/Styles/" /> </syncgroup> - You can make synchronization conditional by putting the content that has to be synchronized in a separate
<syncgroup>element and by using theishconditionattribute.The following groups are conditionally synchronized for XMetaL:<syncgroup ishcondition="ClientExe='xmetal.exe'"> <syncgroup ishcondition="ClientExeVersion>=10.0"> <syncfolder serverfolder="~/ClientConfig/XMetaL/10.0-CRCL/Editor/" clientfolder="%EDITORLOCATION%/" /> <syncfolder serverfolder="~/ClientConfig/XMetaL/10.0-CRCL/LocalStorage/" clientfolder="%DATASOURCEAPPDATA%/Config/" /> </syncgroup> </syncgroup> - Save the file SyncInfo.xml and close it.
The next time you connect to the repository, all modified files will be synchronized.