Skip to content

自动校验索引时排除非 id 格式的 .sy 文件 #7111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 tasks done
xiaoyoucheng opened this issue Jan 18, 2023 · 6 comments
Closed
2 tasks done

自动校验索引时排除非 id 格式的 .sy 文件 #7111

xiaoyoucheng opened this issue Jan 18, 2023 · 6 comments
Assignees
Milestone

Comments

@xiaoyoucheng
Copy link

xiaoyoucheng commented Jan 18, 2023

该问题是否已经被报告过了? Is there an existing issue for this?

  • 我已经搜索了 Issues,没有发现类似问题
    I have searched the existing issues

该问题是否能够在默认主题(daylight/midnight)下重现? Can the issue be reproduced with the default theme (daylight/midnight)?

  • 我能够在默认主题下重现该问题
    I was able to reproduce the issue with the default theme

描述问题 Describe the problem

今天同步被移动端同步覆盖了,使用数据快照恢复死卡住。一直剩余待处理78.
很长一段时间后,会出现回滚数据快照失败

期待的结果 Expected result

可以正常使用快照恢复

截屏或者录屏演示 Screenshot or screen recording presentation

image
image

版本环境 Version environment

- Version: 2.7.0
- Operating System: win10

日志文件 Log file

siyuan.log

更多信息 More information

No response

@88250
Copy link
Member

88250 commented Jan 18, 2023

笔记本路径下不要放置非 id 格式的 .sy 文件,比如这个路径:

data\20210823141557-05j4q4t\20210823141612-phuwl3e\20211022100707-dgelby7\20210823141612-ec2lf4f\templates\Meteor\dailynote.sy

@88250 88250 changed the title 数据快照恢复卡住 改进自动校验索引 Jan 18, 2023
@88250 88250 self-assigned this Jan 18, 2023
@88250 88250 added this to the 2.7.1 milestone Jan 18, 2023
@88250 88250 changed the title 改进自动校验索引 自动校验索引时排除非 id 格式的 .sy 文件 Jan 18, 2023
88250 added a commit that referenced this issue Jan 18, 2023

Verified

This commit was signed with the committer’s verified signature.
@88250 88250 closed this as completed Jan 18, 2023
@xiaoyoucheng
Copy link
Author

笔记本路径下不要放置非 id 格式的 .sy 文件,比如这个路径:

data\20210823141557-05j4q4t\20210823141612-phuwl3e\20211022100707-dgelby7\20210823141612-ec2lf4f\templates\Meteor\dailynote.sy

这已经不知道怎么来的了。 看起来是之前的模板功能留下的。我也想找到快照文件删除,发现找不到快照。

@88250
Copy link
Member

88250 commented Jan 18, 2023

等下个版本再试试,我们做了些调整。

@xiaoyoucheng
Copy link
Author

等下个版本再试试,我们做了些调整。

有件事我很好奇 能不能想问下,这个数据快照是不是不是我想象中的完整备份。

@88250
Copy link
Member

88250 commented Jan 18, 2023

基本是的,但是会根据用户配置的 ignore 文件进行忽略,同时也会默认忽略一些文件,比如 *.tmp. 开头的文件/文件夹、隐藏文件和符号链接,具体规则可以参考 https://github.com/siyuan-note/dejavu/blob/main/repo.gobuiltInIgnore 函数源码。

@xiaoyoucheng
Copy link
Author

基本是的,但是会根据用户配置的 ignore 文件进行忽略,同时也会默认忽略一些文件,比如 *.tmp. 开头的文件/文件夹、隐藏文件和符号链接,具体规则可以参考 https://github.com/siyuan-note/dejavu/blob/main/repo.gobuiltInIgnore 函数源码。

好的,谢谢解答。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants