I have a laptop and a phone in which termux is installed. I want to move files from my phone to my computer using rsync if all files are older than 30 days. I think I should use find command with -exec rsync.

find . -mtime +30 -exec rsync something 

but the problem is my phone’s IP address is always changing so how do I transfer file? I have to run this script in my laptop

  • BaumGeist@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    15 hours ago

    Is your phone running a GNU distro or rooted Android, or is it just regular Android with a Termux chroot?