Comments (4)
Since the feature request still hasn't been taken and whatnot, you can do something like a shell loop through extended globbing.
for directory in !(UnwantedPattern); do
adb-sync "$directory" /storage/5111-3BEE
done
This can help for forward syncs, but I don't think there's a very easy workaround for directories on your Android phone itself.
from adb-sync.
Thank you for that, though for the case on my system is the reverse sync to backup my Android to my HDD.
I have resorted to backing up few important folders that I need instead, using an array and a for loop to sync said folders, as shown below.
This way might actually be better, because I wouldn't need the random folders in /sdcard/ created by apps, nor the Android folder inside /sdcard/, given that it contains caches and isn't as necessary as my pictures/music/etc. I can also add into the array any other folder I want transferred
declare -a arr=("DCIM" "Downloads" "audio" "Pictures" "APK" "ZIP")
for FolderStr in "${arr[@]}"
do
./adb-sync/adb-sync --reverse /storage/emulated/0/$FolderStr/ /media/DATA/OP3T/sdcard/$FolderStr/
# echo "$FolderStr"
done
from adb-sync.
Duplicate of #21.
from adb-sync.
Hi, @https://github.com/skewerr I tried your code
for directory in "!(-*)"; do
adb-sync /home/schede/cultura/inglese/. sdcard/Documents/inglese/
done
But I'm not able to sinc my folder with the tablet. I have to sync all except symlinks (folders and files). Can you help me?
from adb-sync.
Related Issues (20)
- error running it. stacktrace. HOT 1
- Colon not supported in folder name HOT 8
- Hard-coded location of python3 HOT 2
- TypeError with latest rev HOT 1
- Problems with parameters: a bytes-like object is required, not 'str' HOT 3
- adb-sync seems to close standard input? HOT 3
- anyway to --reverse and --delete?
- Problems with encoding: UnicodeDecodeError: 'utf-8' codec can't decode byte: invalid start byte HOT 6
- Is this project still active? HOT 2
- windows 10 HOT 8
- adb-sync doesn't work correctly with symlinks
- Crashes when trying to copy files with question marks in the name.
- Copying from external storage HOT 4
- adb-sync doesn't copy files properly if names are same on local and remote HOT 5
- When the file length is the same, it will be considered as no difference HOT 1
- two way sync breaks when filename contains spaces
- Scanning and diffing takes a long time for large directories HOT 2
- "bad date" from "touch" when using -t option HOT 1
- Ignore unreadable files
- Use my fork HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adb-sync.