Aborting File Sync Rule

Aborting File Sync Rule

Is there a way to abort a File Sync Rule in the "Before File Synchronization" script? I have a very large file that must be sent to the device. Once it is processed, I would like to delete it. I would like to down a smaller file that I could check for before the file sync and if the file exists DON'T DOWNLOAD the large file.

Thoughts.

3 Answers

Order By:   Standard | Newest | Votes
Raymond Chan | posted this 18 March 2019

If there is no other file-sync rule targeted to any of your device group(s) of interest,  the following possible is one possible way.   For EACH existing device group to be targeted, you need two file-sync rules, one alert rule, and a  newly created child device-group.

 

The first file-sync rule is for downloading the large file to the target device group.  The alert rule is triggered whenever a file-sync event  is reported, and the action is to relocate a device to the newly created child device-group.  Finally, the second file sync rule is for uploading the small file from device in the child device group, and a post-sync script to remove the big downloaded file whenever a successful upload sync of the small file is complete.  The content of the small file is immaterial and not tested.

 

If you have  other file-sync rule targeted to any of your device group(s) of interest,  you can use similar approach as above, but use custom data rather than the small file for the upload direction, and the alert rule triggered for particular value of the custom data collected.  Your device need software to write required value to an INI/XML file for data collection, rather than writing out the original small file for upload back to the server.

 

 

  • 0
  • 0
Jim J | posted this 18 March 2019

Unfortunately, I can't move the devices from their source folder. 

  • 0
  • 0
Raymond Chan | posted this 18 March 2019

The move operation is done automatically by the server, and there shouldn't be any permission issue.  However, You do need permission to edit the required rules, and permission to create child device group node(s).

 

  • 0
  • 0

Give us your feedback
Give us your feedback
Feedback