Dropbox custom sync - pattern matching?

I use Dropbox on a daily basis and set up my programming projects there. It works fine, but as soon as I got a lot of projects, my /node_modules struggle on Dropbox. The synchronization process starts slowly, and it consumes CPU time.

Is there a way to do selective synchronization based on the directory name or mask template? It would be nice to have the equivalent .gitignore for customization.

Any third-party software for this task?

+7
source share
2 answers

There is a way of selective synchronization, but I do not believe that it has any advanced rules that you describe:

https://www.dropbox.com/help/175/en

0
source

2 ways to solve this problem:

  • You can put the node_modules top project directory in the file tree. For example:
    Project dir: c:/prj/myProjWrapper/myProj
    In c:/prj/myProjWrapper put package.json and do npm install here, NodeJS will find it recursively.

  • Only Win and Linux, not for Mac! In the project directory, create the .ds_store folder (this is not Dropbox sync). Put package.json into it and do npm install . You must set NODE_PATH=./.ds_store/node_modules;. when starting NodeJS

0
source

All Articles