dma_k
dma_k

Reputation: 10639

How to synchnorize files with mobile phone running LineageOS?

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:

Mobile phone is exposing the folder via e.g. SSH

This would require LineageOS running SSH server. In this case rsync could be run on the server (periodically or on some event).

Mobile phone is running rsync

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

Answers (1)

ams
ams

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

Related Questions