BitTorrent Sync - Exclude All Specific Subfolders

07
2014-07
  • Pavel

    I want to sync up my dev folder including various project folders, each having node_modules folder inside. I would like to exclude all node_modules subfolders.

    Here is an example of my file structure:

    . ├── projectOne │ ├── index.app │ ├── node_modules │ ├── package.json │ └── src └── projectTwo ├── node_modules ├── package.json └── src

    The root folder has .SyncIgnore file for excluding specific folders and files, but I do not know how to exclude ALL node_modules subfolders.

    */node_modules do not work.

  • Answers
  • user321933

    Great reference document: http://preciseinfo.org/BTSync/BTSync_Notes.html#Using_SyncIgnore_file

    You should use either of these to ignore node_modules:

    # ignore node_modules on every level in hierarchy
    node_modules
    # ignore node_modules only on the second level
    /*/node_modules
    

  • Related Question

    networking - Sync a folder between several computers
  • Trylks

    I need to synchronize folders in a team of several people.

    1. syncs should be automatically or the people will forget about syncing.
    2. subgroups should be possible so that some folders are shared with only a few people in the organisation.
    3. people are working together, so syncing should happen over LAN if possible and Internet if not.
    4. I need to keep in sync very big files, so cloud storage is not an option (too expensive for huge files).
    5. there are people using windows and mac in this group, linux may be a possibility in the future.
    6. there are no IT experts in the group and there are no material means to have a server running, so I need something easy to use and that is not dependent on a server up-time.

    I know there are similar questions, but working on Mac is a must have for my group of people/computers. Previous answers do not address this list that I consider fairly general and not specific to my case.

    The point is to use something similar to Dropbox, really (really) easy to use for everybody, without (necessarily) syncing with the Internet. I know Dropbox can transfer the files to the peers in a LAN independently (thus faster) from the server communication, however:

    1. communication with the server is still happening and using valuable bandwidth.
    2. space limitations, some files could be huge.

    So that's why this should be completely decentralized and p2p. I hope everything is clear, please ask for clarification if something is not.

    Thank you.


  • Related Answers
    Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.