首页 > 解决方案 > Onedrive 同步未检测到远程更改 - Ubuntu 18.04

问题描述

前段时间我按照这些说明https://gist.github.com/starlinq/0f98c6d9339497bb8ac42d67f66f60eb在我大学的远程 Ubuntu 18.04 机器上安装 OneDrive。尽管速度非常慢,但一切都很好:通过 OneDrive 服务器在我的本地和远程计算机之间的同步是由onedrive --synchronization命令正确执行的。昨天我删除了几个文件夹,其中包含一堆代码(有一些 git 存储库弄乱了 onedrive 同步)和我本地机器上的一些图像。随后与远程 OneDrive 云的同步很顺利。今天,我尝试将我的远程计算机与 OneDrive 同步,但当启动同步命令时,我看不到这些文件夹消失。我试过了onedrive --synchronization --resync在远程机器上没有运气,因为唯一的结果是从我的远程机器上重新上传死文件夹,他们仍然在那里紧紧抓住生命。

关于阻止我的远程 OneDrive 计算机与 OneDrive 服务器同步的任何线索/建议?我也尝试过onedrive --synchronize --download-onlyonedrive --synchronize --force但我得到的只是标准序列:

Configuration file successfully loaded
Configuring Global Azure AD Endpoints
Initializing the Synchronization Engine ...
Syncing changes from OneDrive ...
Uploading differences of ~/OneDrive
Uploading new items of ~/OneDrive

而如果我尝试onedrive --synchronize --verbose -v+,我会收到数百条消息,例如

[DEBUG] No Strict Matching Enforced
[DEBUG] Checking file: ./webSite/themes/academic/data/webpack_assets.json
[DEBUG] skip_file evaluation for: /webSite/themes/academic/data/webpack_assets.json
[DEBUG] Checking file: ./webSite/themes/academic/theme.toml

尽管 .config/ondrive/config 文件中唯一的“skip_dir”是skip_dir = "thesis|heavyData".

标签: ubuntusynchronizationonedrive

解决方案


在配置文件中,尝试将local-first选项设置为true

参考:https ://raw.githubusercontent.com/abraunegg/onedrive/master/config


推荐阅读