Skip to content

Tool allowing for watching sync directory and setting Dropbox to ignore paths using .dropboxignore

License

Notifications You must be signed in to change notification settings

MichalKarol/dropboxignore

Repository files navigation

dropboxignore

Python implementation of Dropbox equivalent of .gitignore: .dropboxignore. At the beginning tool will exclude using Selective Sync in Dropbox all directories matching rules stored in .dropboxignore. Later it will monitor the Dropbox's directory using inotify and exclude them before Dropbox sync them.

Azure DevOps builds Azure DevOps tests (compact) Azure DevOps coverage

Usage

$PATH_TO_DROPBOX_DIRECTORY is Dropbox root directory

  1. Create .dropboxignore file in $PATH_TO_DROPBOX_DIRECTORY
  2. Run dropboxignore $PATH_TO_DROPBOX_DIRECTORY and do not close your termial (needed for directory monitoring)

Example .dropboxignore

Example .dropboxignore for Dropbox directory inside which JS/TS and Python projects are developed.

node_modules
__pycache__
.mypy_cache
.pytest_cache
.history
htmlcov

.dropboxignore works for whole Dropbox root directory, but it could be used for more selective exclusion eg.

some_project/node_modules

where only in some_project directory node_modules is excluded and for the rest of the projects node_modules are synced.

About

Tool allowing for watching sync directory and setting Dropbox to ignore paths using .dropboxignore

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages