Problem: cannot modify SD card (on non-rooted systems) and devs are not going to fix this anytime soon.Cannot rename files (permission error) so it makes it unusable with Unison (on PC). Maximum speed is 2 MB/s, but most of the time it's ~500kB/s. Much slower when compared with SSHDroid and SSHHelper (not only with sshfs, but also when I simply connect using ssh and terminal typing and responses are really, really slow). I was able to solve this problem with a hack: zenity -password | sshfs "$PWD/data" -o reconnect,password_stdin, but I'm not sure how secure it is. It requires entering password several (>10) times when mounted as sshfs (I tried trivial one and and made sure it's not typo) and doesn't support ssh keys.This actually works but has two problems.So if renaming is not allowed, it doesn't work. Unison requires permission to rename files it always creates temporary files and directories and when everything is downloaded and double-checked, then old files (if any) are deleted and new files renamed.Of course, other apps (like Unison) must do that too, but they don't ask for every single file sequentially (not: client send request for single file - latency - server checks and sends response - client receive response and go to next file). When the SSH is actually rw, then it works, but it's so slow that it's impractical - it must ask for every single file and directory over the network.In case I could find working SSH server use SSHFS to mount remote Android device locally and then use Unison for synchronization.What I already tried (with mixed/partial success)Ĭombination: Unison (on PC) + some SSH server (Android) + SSHFS (on PC) In other words, I checked the application has permission to modify the SD card: it has. Modification/deleting data on SD card available. There I opened context menu -> all permissions: reading SD card available. I went to settings -> Applications -> SSHDroid -> Permissions: storage is enabled. Cannot write/modify SD card using the ssh connection.For using SSH with another software (see bellow).Not quite designated for two-way syncing.Also seems to use older version of Unison (this application requires exactly same versions on server and client to allow data transfer).Running the server on other networks could expose files on your device to untrusted parties." Because Unison clients connect to your device over a direct socket connection instead of over SSH, the server should only be run when your Android device is connected to a trusted network, like a home WiFi. Not secure - from application description: "No SSH access is necessary - clients connect directly via socket.What I already tried/checked (without success) The process is able to detect deleted data so it doesn't copy file which was originally on both devices and later deleted on one of them. Synchronize directories = a process which transfers data between smartphone and PC in a way that at the end of the process, both devices contain exactly same data in selected directories (preferably, but not necessarily, excluding filtered files). Offline = without Internet access, but the PC and smartphone are connected through LAN. Safely = using secured connection between the devices (for example using ssh). Is there a way how to offline safely synchronize directories between sd card on Android which is not rooted and PC with Ubuntu?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |