Last active
April 23, 2021 13:14
-
-
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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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