Optimal File Sync
This is the wiki page for the Optimal File Sync app, an app for syncing data from an Android/IOS(currently only Android) device, to a Windows/Samba/SMB server.
It is meant as a show case app for the Kivy framework.
For developers wanting the code explained; please check out the Optimal_File_Sync_Source article.
- Only syncs when Wi-Fi is available
- Only syncs when on the same network as the target server
- Only syncs when new files have been created
- Runs as a background service
- Status and progress can be monitored from app
- Disregards temporary video files
- Open source
- Low system load
- Written in pure Python/Py4A/Kivy.
- Currently only Android, but an IOS package is in the works.
Go to Google play and install the beta: https://play.google.com/store/apps/details?id=se.optimalbpm.optimal.file.sync.optimal_file_sync
Alternatively,there is also an .apk at sourceforge: https://sourceforge.net/projects/optimalfilesync/files/
The source it located at: https://github.com/nicklasb/optimal_file_sync
Starting the app/service
- Start the app.
- Enter/browse to source directory, examples of typical folders on Android:
- /storage/sdcard0/DCIM/Camera - The folder used when pictures are stored in the *internal* memory.
- /storage/extSdCard/DCIM/Camera - The folder used when pictures are stored on an *external* memory card.
- Swipe left, enter credentials
- Swipe left, enter/browse to destination share/folder. Test the connection to the server with the "test connection"-button.
- Swipe left, press Start to save settings and start the background service. Settings are also saved on exit.
- If there is something for the service to do, it will now start syncing, progress is shown in the status/progress section.
Stopping the app/server
- Start the app.
- Swipe left to go to the "Control" screen(portrait just to show it)
- Press "Stop"
- Multiple source directories(to be able to sync screen shots, and other things)
- Clean up source directory to maintain space(for new photos or movies), either by age or how much space has to be kept. Or both.
- intelligent file and directory naming, discerning "chunks" of pictures belonging to a specific event.