Skip to content

Instantly share code, notes, and snippets.

@lorey
Last active Apr 23, 2021
Embed
What would you like to do?
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