RSYNC / Split Directories

  • Dear all,
    I have a folder structure like this: (examples)


    Folder/Subfolder"ABC"/Subsubfolder"SWU"/*.*Files
    Folder/Subfolder"ABC"/Subsubfolder"SXY"/*.*Files
    Folder/Subfolder"ABC"/Subsubfolder"ZWE"/*.*Files
    Folder/Subfolder"BCD"/Subsubfolder"SWU"/*.*Files
    Folder/Subfolder"CDE"/Subsubfolder"SWU"/*.*Files
    Folder/Subfolder"TXY"/Subsubfolder"SWU"/*.*Files



    and would like to divide this to two diverent shares via rsync... But I hav problems to get it working with include /exclude...


    I would like to split it up at the Subfolders, I would like to have the Subfolders starting from "0" to "Sj" as one part an starting with "Sk" to "Z" the other...


    Maybe someone can help me/give me a hint..?!?!




    I tried something like


    --include "/[0-S][a-j]*/**" --exclude "/[S-Z]*/**" but that doesn't work... Subfolders starting with "Al" are not included
    what can I do, to do it right? ?(


    Thanks for your help in advance

    Scissors cuts paper, paper covers rock, rock crushes lizard, lizard poisons Spock, Spock smashes scissors, scissors decapitates lizard, lizard eats paper, paper disproves Spock, Spock vaporizes rock, and as it always has, rock crushes scissors.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!