#!/data/data/com.termux/files/usr/bin/sh flock -n -E 0 \ /data/data/com.termux/files/home/rsync.lock \ rsync -vhhhirt --info=nonreg0 --progress --no-perms \ --chmod=D755,F644 '--exclude=*::*' \ '--exclude=/files/usr/lib/perl?/*/?od' \ '--exclude=/files/usr/include/linux/netfilter*' \ --exclude=/files/usr/var/run/cron.reboot \ --exclude=/files/usr/share/LICENSES \ --delete --delete-excluded \ /data/data/com.termux/ \ /storage/emulated/0/termux/data-data-com.termux/ exit_code="$?" if [ "$exit_code" -ne 0 ] then termux-notification \ -c "[$0] rsync exit code = $exit_code" fi