Skip to content

Instantly share code, notes, and snippets.

@lorey
Last active April 23, 2021 13:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lorey/57009f7d7a4047fdc487049ef8683825 to your computer and use it in GitHub Desktop.
Save lorey/57009f7d7a4047fdc487049ef8683825 to your computer and use it in GitHub Desktop.
This command allows you to rsync your android files to your linux/unix system
# this command will rsync your files via MTP from android to your linux system
# took me a while to find a working combination, so here's the documentation
# 1. plug in phone via USB
# 2. select image or file transfer (image will sync only images, files everything)
# 3. open android in your file system (to make sure it's mounted)
# 4. run the following command
rsync -h --progress --stats -r -tgo -p -l -D --delete "/run/user/1000/gvfs/{insert path here}/" ./{your path without trailing slash}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment