Install ServerSync as a Service on Linux
Beginning with FileCloud Version 21.1, ServerSync supports SUSE Linux versions 12 and 15. To use SUSE Linux version 12 with storage application programs such as Dell Unity VSA, enable LAN file sharing.
How to Install FileCloud ServerSync as a Service on Linux
- Download FileCloud ServerSync Service for Linux (Ubuntu 18.04) from https://www.filecloud.com/additional-downloads.
Extract the contents of the zip file fcserversyncservice_linux_amd64.zip.
To extract files using the terminal, use the following command:-
unzip fcserversyncservice_linux_amd64.zip
Give execute permission to fssyncstart.sh and fssync file
chmod +x fssyncstart.sh chmod +x fssync
- Edit the config file fsserviceconfig.xml, and add the necessary parameters for your configuration. The following example shows how to format the parameters.
<?xml version="1.0" encoding="UTF-8" ?> <variantrow> <rowentry> <name>url</name> <type>string</type> <value>HERE TYPE SERVER URL ADDRESS</value> </rowentry> <rowentry> <name>account</name> <type>string</type> <value>USER NAME</value> </rowentry> <rowentry> <name>password</name> <type>string</type> <value>PASSWORD</value> </rowentry> <rowentry> <name>limit_folder_count</name> <type>string</type> <value>2</value> </rowentry> <rowentry> <name>limit_folder_1</name> <type>string</type> <value>REMOTE_FOLDER_PATH|HERE_TYPE_LOCAL_FOLDER_PATH|0|0|0</value> </rowentry> <rowentry> <name>limit_folder_2</name> <type>string</type> <value>REMOTE_FOLDER_PATH|HERE_TYPE_LOCAL_FOLDER_PATH|0|0|0</value> </rowentry> </variantrow>
- Edit syncclientconfig.xml and set the value of the field syncclientlocation to the folder path where log files and database files will be created by the app.
Open the terminal, go to the location where the FileCloud ServerSync files were extracted, and then run fssyncstart.sh
./fssyncservicestart.sh
Format of parameters in fsserviceconfig.xml
Table 1. The following XML tags are supported for the ServerSync device configuration.
XML Tag | Value | Example |
---|---|---|
limit_folder_count | Number of folders to sync. If key is not specified, then there are no folders to sync. | <limit_folder_count>0</limit_folder_count> |
limit_folder_1 limit_folder_2 limit_folder_3 ... | Depending upon the number of folders specified in the limit_folder_count, you will need to have the appropriate number of entries. The folder value is specified using 5 parameters using the following format <REMOTE FOLDER> = E.g.: /john/folder1 <LOCAL FOLDER> = E.g: C:\data\localfolder <PERMISSION> = 1 - Allow NTFS permissions to be applied to local folder as per permissions of the folder on the remote Server, 0 - Deny NTFS permissions to be applied <SYNC TYPE> = 0 (2-way sync) or 1 (remote to local sync). <SYNC DISABLED> = 0 (enabled) or 1 (disabled). | <limit_folder_1>/john/folder1|C:\data\local|0|1|0</limit_folder_1> |
disablenotifications | 0/1 - Enable or Disable sync notifications | <disablenotifications>1</disablenotifications> |
syncfrequency | number - Number in seconds to sync to the server (default is 120 seconds) | <syncfrequency>100</syncfrequency> |
checkmodtime | 0/1 - Advanced: check modification time in addition to size when checking for changes. Default is disabled. | <checkmodtime>1</checkmodtime> |
checkcrc | 0/1 - Advanced: check CRC in addition to size when checking for changes. Default is disabled. | <checkcrc>1</checkcrc> |
deleteapprovalpct | Number from 0 to 100, which indicates what % of files being deleted requires approval. Default is 10. This applies only to file deletions in the local sync folder. | <deleteapprovalpct>20</deleteapprovalpct> |
skipdeleteapproval | 0/1 - Whether approvals are needed for bulk sync deletions. Default is disabled. When set to 1, approval is required if > 50 files are deleted AND percent of files being deleted is > deleteapprovalpct. This applies only to file deletions in the local sync folder. | <skipdeleteapproval>1</skipdeleteapproval> |
currentlanguage | Allows changing the current language of the Server sync app | <currentlanguage>dutch</currentlanguage> |