Skip to content

File Sync ​

File synchronization policies allow you to synchronize files and folders on your device with those on the server, while also enabling the synchronization of files or folders from the server to your device.

Add/Edit File Synchronization ​

Process Flow

  1. Select [Policies] > File Synchronization to access the File Synchronization Policies page.

  2. Click "Create New File Synchronization Policy" to enter the file synchronization settings interface.

FieldDescription
NameRequired field, Enter a name for the file synchronization policy.
DescriptionProvide a brief description of the file synchronization policy to facilitate identification and lookup.
File Sync Type

File Sync Type: Select the file synchronization direction using the following options:

  • Upload from Device: Send files or folders from the device to the server.

  • Download from Server: Download files or folders from the server to the device.

Device File / Folder NameEnter the full file system path of the file or folder on the device that you wish to synchronize with the server. Select the Macro button to access formatting options—for instance, to point to the main shared or external storage directories. File paths are case-sensitive on Android, iOS, and Linux devices.
Server File / Folder NameEnter the full file system path of the file or folder on the server that you wish to synchronize with your device. You may also choose to access the file manager to select the file or folder.
File Name Format

This field is visible only when "Upload from Device" is selected.

Apply a format to the filename to enable synchronization. Select the Macro button to configure formatting options. Options include:

  • %YYYY%

  • %MM%

  • %DD%

  • %FILENAME%

Create Subfolders for Files

This field is visible only when "Upload from Device" is selected.

When the toggle switch is enabled, you can select how subfolders are created on the device, including:

  • Device ID

  • Device Tree Path

  • Phone ID (IMEI/MEID/ESN)

The option to "Create folders immediately after policy is saved" is disabled by default. When enabled, folders will be created according to the selected type once the file synchronization policy has been saved and assigned.。

Use Subfolders for Files

This field is visible only when "Download from Server" is selected.

When the toggle switch is enabled, you can select how subfolders are created on the server. Options include:

  • Device ID

  • Device Tree Path

  • Phone ID (IMEI/MEID/ESN)

The option to "Create folders immediately after policy is saved" is disabled by default. When enabled, folders will be created according to the selected type once the file synchronization policy has been saved and assigned.

Delete Source Files After Sync

This field is visible only when "Upload from Device" is selected.

When enabled, the source files on the device are sent to the server and then deleted from the device. Only the files are deleted; the folders are retained.

Transfer Files When

Criteria for selecting when to synchronize files:

  • Always Transmit——Transfer the file regardless of whether the source and destination files are different or identical.

  • Files are Different——Transfer the file only when the source file differs from the destination file.

  • Source File is Newer——Transfer the file only when the source file has a newer timestamp.

  • Destination File Does Not Exist——Transfer the file only when the destination file does not exist.

Sync Sub-FoldersWhen disabled, only specific files located within the specified device file or folder path are synchronized; subfolders residing in the same directory are excluded from synchronization. When enabled, all subfolders within the same directory are synchronized.
Sync Online Devices NowThe strategy is executed immediately after creation.
Network Allowances

Select the network over which file synchronization is performed. Options include:

  • LAN

  • Wi-Fi

  • Cellular

  • Cellular While Roaming

  1. Click "Next" The Script tab opens; fill in the relevant script information.

Pre-sync Script Settings

FieldDescription
Enable Pre-Sync ScriptWhen enabled, allows a script to be executed before file synchronization begins.
Script Type

You can choose from the following script source types:

  • Device Script——Provides a selection of saved scripts for reuse.

  • Custom——Opens the script editor for custom script writing.

MANAGE SCRIPTS

Create, update, or delete saved scripts.

Note: Changing a saved script will alter its behavior wherever it is used. If your script is a modification of an existing script, it is recommended that you copy the existing script into a new script before making changes.。

Execute Saved ScriptSelect a saved script name from the drop-down menu to execute it. The script content is displayed as read-only in the script viewer and cannot be edited within the read-only editor.

Post-sync Script Settings

FieldDescription
Enable Post-Sync ScriptWhen enabled, the script will execute only after file synchronization is complete.
Script Type

You may select from the following script source types:

● Device Scripts — Provides a selection of saved scripts available for reuse.

● Custom — Opens the script editor to allow for the creation of custom scripts.

MANAGE SCRIPTS

Create, update, or delete saved scripts.

Note: Modifying a saved script will alter its behavior wherever it is currently in use. If your script is intended as a modification of an existing script, it is recommended that you copy the existing script into a new one before making changes.

Execute Saved ScriptSelect a saved script name from the drop-down menu to execute it. The script content is displayed as read-only within the script viewer and cannot be edited in this read-only editor.
Execute Script Only if Files TransmittedEnable this option when the script requires a file to be sent to the device in order to execute successfully. When disabled, the script will always execute.

File Sync Schedule Type

FieldDescription
Schedule Type

The available trigger types for file synchronization include:

● Device Update — File synchronization is triggered only when the device is updated, rather than being executed according to a specific schedule.

● Custom — Set a recurring schedule to perform file synchronization.

Sync Files when Device ConnectsClick the plus icon on the Frequency Mode page to add multiple file synchronization schedules.
Frequency Type

Select the frequency type for file synchronization:

● Once: Perform file synchronization only once.

● Weekly: Perform file synchronization once a week.

● Periodically: Perform file synchronization at custom-defined intervals.

EveryFor weekly or periodic settings, this refers to the synchronization interval.
Start DateThe start date for executing file synchronization.
  1. Click "Save and Assign" to select the device groups or devices to which the policy will be assigned. Click "Save" to simply save the current file synchronization policy as a draft.

Delete File Synchronization ​

Process Flow

  1. In the strategy list, click the delete icon and select "Delete." A dialog box will appear requesting a second confirmation of the deletion.

  2. When a file synchronization strategy is deleted, the files that have already been synchronized remain unaffected; only the specific data associated with that particular synchronization strategy is removed.

File Synchronization Duplication ​

Replicating a file synchronization policy involves creating a copy of a selected policy; this requires specifying a name for the new policy and allows for the customization of specific attributes.

Process Flow

  1. Enter the main menu and select [Policies] > [File Synchronization].

  2. Select a file synchronization policy, right-click an existing policy, and select [Copy].

FieldDescription
Policy NameRequired field; enter the new policy name.
DescriptionProvide a brief description of this file synchronization policy to facilitate identification and lookup.
Attributes

Select the attributes to be copied:

● Pre-synchronization Script Type

● Post-synchronization Script Type

Assign File Synchronization ​

You can assign file synchronization policies within Shadowalk to specific devices or device groups. This allows you to create new policy assignments or edit existing file synchronization policies.

Process Flow

  1. Enter the main menu and select [Policies] > [File Synchronization].

  2. Create a new file synchronization policy, or right-click an existing policy and select [Assign].

  3. Select a device group from the left-hand panel, and then select the registered devices within that group. You can use the search icon on the left to locate device groups (fuzzy search supported), or use the search icon on the right to search for specific devices (fuzzy search supported); then, click [Assign].

Disable File Synchronization ​

Process Flow

  1. In the policy list, click the Disable icon and select "Disable." A dialog box will appear requesting a secondary confirmation to proceed with disabling.

  2. Once a policy is disabled, any new devices registering to a device group to which that policy has been assigned will *not* inherit the disabled file synchronization policy; however, devices that were already assigned the policy prior to its disabling remain unaffected. If you wish to re-enable the policy, simply click "Assign" again, and it will be automatically reactivated.。

File Manager ​

Regarding file synchronization policies, Shadowalk utilizes a "Master Folder" that contains the files and folders designated for transfer. Devices either download files/folders *from* this Master Folder or upload them *to* it. To access and customize this Master Folder, select the "File Manager" button.

Process Flow

  1. From the Policy List, click "File Manager" to open the File Manager interface in a pop-up window.
descript
  1. The File Manager allows you to perform the following actions:

● Import (upload) files from your local computer.

● Create a new folder.

● Search for, rename, download, or delete existing files/folders.

● Download an existing folder (including its contents) as a single file.

descript