- Install Termux and Termux:API (e.g. from F-Droid).
- Activate the storage in Termux.
- Install the dependencies
apt install rsync openssh jq
. - Generate ssh key
ssh-keygen
. - Copy ssh key to destination
ssh-copy-id user@host
. - Copy
android-rsync-backup
(e.g in your home folder). - Edit variables
src
,dest
andssid
inandroid-rsync-backup
script.
Run the script from Termux: ~/android-rsync-backup
or add the script to homescreen
with Termux:Widget.
- Activate cron
crond
- Add
android-rsync-backup
tocrontab
- Set
ACQUIRE WAKELOCK
for Termux
See Termux:Task.