-
Notifications
You must be signed in to change notification settings - Fork 31
7. HOWTO : Sync files among EPs
ZTM can synchronize files between different devices with the built-in Cloud Mini-App. Before practicing this feature, you can practice this File Sharing Tutorial .
- Login to ZTM App console
Usually this step is done by using a browser to access http://localhost:7777/
- Open Cloud Mini-App.
In the left menu select “Apps” and then “Cloud”:
Select “Apps” on the left menu, then select “Cloud”:
- Select the “Auto Sync” menu on the directory.
Click to open the “Users” directory, then right click on the current directory of the user (my current user is root) and select “Auto Sync” in the popup menu: !
- Set Auto Sync
In the popup window, select the device you want to receive files from, in the example, “cai-iphone”; on the right, select “Download”. In this way, files uploaded by the root user on any device will be synchronized to the root user's phone:
After saving the synchronization configuration, ZTM App will automatically download the files shared from root user's different devices to root user's iphone in the background.
- Verify on iPhone
View the synchronized files in the file manager of iPhone:
For the synchronization setup as above, the CLI can also be configured with the “ztm cloud mirror” command, e.g.:
caishu@caishu-macair4 ztm % ztm cloud mirror /users/root --download
Endpoint: cai-macair (8f0c306b-1d3b-4a22-b32b-8728f9e9afb0)
Pathname: /users/root
Auto-downloading: on
Auto-upload: off