I don’t want an app to send files, I want to be able to rsync files to my phone like a normal computer.
I have data I want backed up so an rsync script sends it to a few different devices to keep multiple copies. I don’t want to manually drag/drop files for that, I just want my script to take care of it.
It’s really tragic and inelegant how we have to jump through hoops and bounce files around a wireless network when the USB cable is just sitting right there. What I had to do since rsync doesn’t work with mtp file paths was to install android-file-transfer and run the following with my phone connected via USB, but not already mounted by the file manager:
Just installed it now and this is so much better than the SSH app I used before. Now dumping like 40GB of backup data onto the tablets SD card. Got the tablet second hand, think the SD card cost more than the tablet did.
You can run a SSH server on Termux, so yes, no reason you couldn’t.
Though given how aggressive background app management has gotten on Android, you’ll likely have to use the ‘Wakelock’ function which will keep a permanent notification on your status bar, and even then Termux might still not survive depending just how aggressive your OEM/ROM is.
I don’t want an app to send files, I want to be able to rsync files to my phone like a normal computer.
I have data I want backed up so an rsync script sends it to a few different devices to keep multiple copies. I don’t want to manually drag/drop files for that, I just want my script to take care of it.
It’s really tragic and inelegant how we have to jump through hoops and bounce files around a wireless network when the USB cable is just sitting right there. What I had to do since rsync doesn’t work with mtp file paths was to install
android-file-transfer
and run the following with my phone connected via USB, but not already mounted by the file manager:aft-mtp-mount /path/to/mount/point rsync -a --progress --exclude 'Android/' '/path/to/mount/point/Internal shared storage/' '/path/to/backup/'
You can also omit the
--exclude 'Android/'
part as needed, I just didn’t want to copy over the quintillion tiny files under that directory.I would be sending files to the Android device, using it as a location to backup “important” data. Mostly Factorio saves.
Plugging in for that is impractical given its already on the same LAN.
I think you can do that with Termux on Android.
Does that let you do it both ways? I want to run rsync from the desktop
Its basically a Linux terminal for your phone that can run rsync, so it should work both ways.
Just installed it now and this is so much better than the SSH app I used before. Now dumping like 40GB of backup data onto the tablets SD card. Got the tablet second hand, think the SD card cost more than the tablet did.
You can run a SSH server on Termux, so yes, no reason you couldn’t.
Though given how aggressive background app management has gotten on Android, you’ll likely have to use the ‘Wakelock’ function which will keep a permanent notification on your status bar, and even then Termux might still not survive depending just how aggressive your OEM/ROM is.