Git Product home page Git Product logo

rsync-for-android's Introduction

rsync-for-android

Transfer files over USB at the speed of lightning with rsync (needs Termux).

Overview

Transfer files to and from your Android device much faster than over MTP (the default) or even ADB pull/push using rsync.

Why?

Quite simply put, libmtp and adb provide terrible performance. Windows' implementation of MTP is better but it still keeps overwriting files unnecessarily and can't detect changes.

We need a better solution. Luckily there's already rsync which gives us delta-compression. Only problem is that it's a client-server program, needing an rsync server running on the phone.

For copying a large number of files like a Music library or Photo gallery, rsync provides massive performance gains especially when only a few files have changed.

Requirements

  1. Termux app installed and initialised (run at least once)
  2. ADB command in $PATH
  3. USB debugging enabled on your phone
  4. An rsync client on your PC (GRsync recommended for GUI)

Usage

  1. Run adb devices to ensure that your phone shows up in the list. Authorize on the phone if necessary.

  2. Run the script with ./start-rsync-android. This will perform the one-time-setup (if necessary) and forward the port 8873 on your phone to localhost:8873, enabling you to access your phone's rsync server at localhost:8873.

Example

Backup all your photos to your Backup HDD:

rsync --avPh --info=progress2 rsync://localhost:8873/sdcard/DCIM /media/Backup/Phone/DCIM

rsync-for-android's People

Contributors

autolisis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.