首页 > 解决方案 > 如何在磁盘上找到 Confluence 附件

问题描述

Confluence 以一种古怪的方式存储附件,几乎不可能按照自己的说明来查找附件的存储位置。这是他们的文档:https ://confluence.atlassian.com/doc/hierarchical-file-system-attachment-storage-704578486.html 。

我正在使用 CentOS 和 Mysql 5.7

标签: confluence

解决方案


Atlassian 支持为我提供了以下信息,我想与社区分享,因为找到文件在您的计算机上的存储位置确实不应该那么复杂。这是Mysql查询:

select concat('<confluence_home>/attachments/ver003/', spaceid % 250, '/', spaceid / 1000 % 250, '/', spaceid, '/', pageid % 250, '/', pageid / 1000 % 250, '/', pageid, '/', en prevver is null then contentid else prevver end, '/', version ) as DiskLoc, spaceid, pageid, contentid, version from CONTENT where title like '%NAME OF FILE%' and contenttype
= 'ATTACHMENT' and pageid in ( select c.contentid FROM CONTENT c JOIN SPACES s ON s.spaceid = c.spaceid where c.contenttype = 'PAGE' and s.spaceid is not null AND c.prevver IS NULL);

只需将 NAME OF FILE 替换为您的文件名


推荐阅读