9
votes
Accepted
adb push: sync but not copy
You would use adb push --sync, for example:
adb push --sync /home/abc/ /sdcard/abc
from adb --help:
file transfer:
push [--sync] LOCAL... REMOTE
copy local files/directories to device
--...
5
votes
Accepted
Rsync-like downloads over adb?
Per the comment by alecxs, above, adb-sync gives me the functionality I'm looking for: https://github.com/google/adb-sync
Some day I'll also try Adebar.
Thanks to alecxs!
4
votes
adb push: sync but not copy
While this answer is not exactly an explanation on the usage of adb sync, it may help when your primary goal is to sync files using adb.
You may be interested in adb-sync which is a Python script ...
3
votes
Accepted
Sync ext SD to USB OTG **without** using a PC
As we figured out the solution you now use in chat, this answer should comply with "being tested", "not involving a PC or file manager" and "relying on verified sources". Though in the meantime there ...
2
votes
adb push: sync but not copy
"adb sync" is not relevant in your case. It is used to sync system partition to your connected adb device. It will only work if your phone is rooted and you first need to put system ...
2
votes
zsh scp completion of remote files doesn't work when running SSHHelper
The culprit is android's crippled ls command. Zsh's completion run ls -d1FL which /system/bin/ls doesn't understand.
A way to fix this is to edit /data/data/com.arachnoid.sshelper/home/.ssh/...
2
votes
Installing rsync on Android to transfer files from Android to OSX
First on Android each app has an own user-id/account, hence u0_a312is the user of the app that runs the ssh server. Regular Linux user accounts like myuser don't exist on Android.
Based on the path /...
2
votes
Rsync-like downloads over adb?
I tried the original adb-sync (https://github.com/google/adb-sync), but I couldn't get it to work due to an encoding error. The better-adb-sync fork (https://github.com/SelfAdjointOperator/better-adb-...
1
vote
adb-sync along with rsync for fastest way to backup gigabytes of media & photos file to HDD disk regularly
Try the --size-only commandline option on the rsync client.
rsync's "quick check" algorithm only updates files if the size or last-modified time (mtime) do not match. For various reasons, ...
1
vote
How do I run the latest version of rsync as root with SimpleSSHD?
Download the latest rsync binary:
mkdir ~/bin && cd ~/bin &&
curl --progress-bar -L -o rsync "https://github.com/JBBgameich/rsync-static/releases/download/continuous/rsync-aarch64&...
1
vote
Rsync-like downloads over adb?
Run SimpleSSHD https://f-droid.org/en/packages/org.galexander.sshd/ and use rsync like you would with any other ssh-enabled server.
rsync -r -e 'ssh -p 2222' --info=progress2 [email protected]:/...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
rsync × 20ssh × 6
adb × 4
sync × 4
backup × 3
linux × 2
automation × 2
cyanogenmod × 1
root-access × 1
6.0-marshmallow × 1
updates × 1
whatsapp-messenger × 1
4.2-jelly-bean × 1
nexus-4 × 1
mobile-data × 1
shell × 1
file-transfer × 1
photos × 1
windows × 1
usb-on-the-go × 1
data-transfer × 1
google-play-music × 1
file-permissions × 1
services × 1
selinux × 1