Dropbox的Linux服务器 – 如何包括/排除文件夹?

使用Dropbox GUI,可以特别控制要同步的文件夹。 这可以通过命令行完成吗?

背景:我试着在这里给出的Linux服务器上安装Dropbox的解决scheme,它似乎工作正常: http : //ubuntuservergui.com/ubuntu-server-guide/install-dropbox-ubuntu-server

官方的Dropbox CLI有一个排除选项 。

在Linux上Dropbox有一个客户端( dropbox )和一个deamon( dropboxd )。

客户端具有exclude命令,您可以使用该命令排除目录。 例如,要从Dropbox中排除node_modules,您可以inputdropbox 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.