• Korhaka@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    9
    ·
    2 days ago

    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.

    • monovergent 🛠️@lemmy.ml
      link
      fedilink
      arrow-up
      4
      ·
      2 days ago

      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.

      • Korhaka@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        2 days ago

        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.

          • Korhaka@sopuli.xyz
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 day ago

            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.

        • LiveLM@lemmy.zip
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 days ago

          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.