Sky.Flow Sync

Last update 2021-09-15 for Sky.Flow version **1.5.1.1**

Sky.Flow%20Sync%20Tool%201.5.1

Sky.Flow Sync is a cross platform tool that enables file synchronization between Sky.Flow Cloud platform and local computers and servers. Files can be transferred using download, upload and sync methods. Recommended Java Runtime is 1.8 or higher. Existing Sky.Flow users can request download link by contacting Sky.Flow support. Current version of the tool 1.5.1.

Usage:

java -cp <CLASS _PATH> com.sciomagis.sky.upload.sync.SkySyncManager -props="<PROPERTIES_FILE_LOCATION"

Example:

java -cp libs/* com.sciomagis.sky.upload.sync.SkySyncManager -props="C:/skySync.properties"

Sky.Flow Sync tool uses properties file (simple text file) with setup options. Properties file options:

skyUrl=https://www.sky-flow.net/sky
username=<PUT_USER_NAME>
password=<PUT_USER_PASSWORD>
organizationId=<PUT_ORGANIZATION_ID>
dir=<PUT_LOCAL_DIR>
dirSky=<PUT_SKY_ARCHIVE_DIR>
fileFilter=*.pdf;*.doc
logLevel=INFO
command=synch
overwrite=true
createFolders=true
deleteUploadedFiles=true

Where:

  • skyUrl is the URL or your the Sky.Flow Cloud platform
  • username and password is the user name used to access the platform. User must have appopriate read&write priviledges on the platform for performing operations
  • organizationId is Sky.Flow ID assigned to your organization
  • dir is local directory used for synchronization
  • dirSky is directory on Sky.Flow Cloud platformed used for synchronization
  • fileFilter enables filtering of files using wildcards
  • logLevel has options: INFO, WARN, ERROR, DEBUG; to enable different levels of messages for monitoring synchronization operation
  • command has options: synch, download, upload
  • overwrite can be set to true to overwrite existing files on target directory
  • createFolders can be set to true to create folders missing in target directory
  • deleteUploadedFiles can be set to true to delete files from local directory if they have been uploaded successfully.

Command download will transfer files from Sky.Flow to local computer or server using options described above. If overwrite flag is not set (overwrite=false) then files that already exist in target directory will not be skipped.

Command upload will transfer files from local computer to Sky.Flow using options described above. If overwrite flag is not set (overwrite=false) then files that already exist in target directory will not be skipped.

Command synch will synchronize Sky.Flow and local directory. If the file exists in both directory and if overwrite flag is not set then file will be skipped. Alternatively, if the overwrite flag is set then transferred is based on several scenarios:

  • If the file was previous uploaded from local computer to Sky.Flow the local modified time is saved on the platform. If local file modified time is changed and is after the time saved on Sky.Flow platform then it will be transferred.
  • If the file on Sky.Flow platform does not have local modified time set and there already is a file on a local directory then file will not be transferred.