我一直将我的 vim 文件保存在 Ubuntu One 中,并且由于我将很多插件安装为 git 子模块(或者 vundle 安装它们)并且我只对更新我的主计算机上的这些存储库感兴趣,因此我已将 Ubuntu One 设置为使用以下方法忽略这些文件:
ignore = \A.*\.git\Z
Run Code Online (Sandbox Code Playgroud)
在~/.config/ubuntuone/syncdaemon.conf这样就不必同步成千上万的文件。现在我正在尝试将这些文件移至 dropbox,但在 dropbox 中找不到等效设置。
所以我的问题是,如何告诉 dropbox 忽略具有某些名称的文件/文件夹(尤其是点文件夹)?
小智 11
在 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.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
11284 次 |
| 最近记录: |