Reputation: 10639
I have a mobile phone running LineageOS 16.0. I would like to organize the automatic synchronization of particular directory on mobile phone with some remote directory (e.g. exposed via FTP/SMB/SSH) on the server. Ideally would be to have an option either to make one-way (synchronize only missing files) or two-way (source and target are identical after synchronization) modes.
In particular above can be achieved by using the rsync
utility. I see the following options:
This would require LineageOS running SSH server. In this case rsync
could be run on the server (periodically or on some event).
sshd
daemon drain the mobile battery?rsync
installation to LineageOS. Maybe there is ready-to-use package or will it require the compilation?rsync
on mobile. How to organize that?If you see other more handy/easy options, please describe how to setup/organize them.
P.S. Dropbox or any other cloud solutions is not an option (out of scope for this question).
Thanks in advance!
Upvotes: 1
Views: 388
Reputation: 25599
I use the FolderSync app for this (it supports connecting to an SSH server at scheduled intervals, although I personally use it with Nextcloud). Syncthing is also a good solution I've used in the past, although you'll need to install that on your server also (no cloud required).
Trying to run an rsync server on a phone doesn't sound appealing, but there are a couple of rsync client apps in the play store.
Upvotes: 2