加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

如何在Linux中通过命令行中的Dropbox选择性同步功能*包含*文件夹

发布时间:2020-12-13 18:08:53 所属栏目:Linux 来源:网络整理
导读:在另一位用户提出这个问题之后: Dropbox on linux server – how to include/exclude folders? 执行其他问题和答案中列出的某些步骤后,我的图标仍然无效: https://askubuntu.com/questions/358913/no-dropbox-icon-in-the-indicator-panel https://askubun
在另一位用户提出这个问题之后: Dropbox on linux server – how to include/exclude folders?

执行其他问题和答案中列出的某些步骤后,我的图标仍然无效:

> https://askubuntu.com/questions/358913/no-dropbox-icon-in-the-indicator-panel
> https://askubuntu.com/questions/182567/dropbox-icon-in-tray-is-missing

Edit: In case anyone was wondering while reading this post,I was able to get my icon to show up finally by following these links:

  • 07003
  • 07004

The question should still be valid for anyone that wants to do this from the command line.

有一个排除的答案,但不包括.有没有办法实现这个目标?

我看到dropbox命令的帮助文本中列出了前一个命令,但没有任何可以帮助我的内容.

有谁知道如何实现这个目标?

以下是我看到的当前帮助文本:

Dropbox command-line interface  

commands:  

Note: use dropbox help <command> to view usage for a specific command.  

 status       get current status of the dropboxd  
 help         provide help  
 puburl       get public url of a file in your dropbox  
 stop         stop dropboxd  
 running      return whether dropbox is running  
 start        start dropboxd  
 filestatus   get current sync status of one or more files  
 ls           list directory contents with current sync status  
 autostart    automatically start dropbox at login  
 exclude      ignores/excludes a directory from syncing  
 lansync      enables or disables LAN sync

我还发现了一些正式的Dropbox帮助文档,这些文档也奇怪地仅提及排除文件,而不包括当前未同步的Dropbox文件夹中的其他文件.

解决方法

要排除所有文件/文件夹:

> cd到你的Dropbox文件夹(通常是cd~ / Dropbox)
>然后键入?/ bin / dropbox.py排除添加*这将从同步中排除保管箱文件夹中的所有内容. (小心!这将删除您同步的所有文件)
>然后,如果要开始同步文件夹“dir”,请键入?/ bin / dropbox.py exclude remove dir

取自
http://www.dropboxwiki.com/tips-and-tricks/using-the-official-dropbox-command-line-interface-cli#comment-1778553228

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读