Git Product home page Git Product logo

Comments (4)

d3adb5 avatar d3adb5 commented on April 26, 2024

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.

hammi1 avatar hammi1 commented on April 26, 2024

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.

divVerent avatar divVerent commented on April 26, 2024

Duplicate of #21.

from adb-sync.

DoctorSubtilis avatar DoctorSubtilis commented on April 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.