在Linux上,Dropbox具有一个客户端(dropbox
)和一个守护进程(dropboxd
)。
客户端具有exclude
命令,您可以使用该命令排除目录。例如,要从Dropbox中排除node_modules,您可以输入dropbox exclude add ./node_modules
dropbox help exclude
将打印帮助信息:
dropbox exclude [list]
dropbox exclude add [DIRECTORY] [DIRECTORY] ...
dropbox exclude remove [DIRECTORY] [DIRECTORY] ...
"list" prints a list of directories currently excluded from syncing.
"add" adds one or more directories to the exclusion list, then resynchronizes Dropbox.
"remove" removes one or more directories from the exclusion list, then resynchronizes Dropbox.
With no arguments, executes "list".
Any specified path must be within Dropbox.