confluence - 如何在磁盘上找到 Confluence 附件
问题描述
Confluence 以一种古怪的方式存储附件,几乎不可能按照自己的说明来查找附件的存储位置。这是他们的文档:https ://confluence.atlassian.com/doc/hierarchical-file-system-attachment-storage-704578486.html 。
我正在使用 CentOS 和 Mysql 5.7
解决方案
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 替换为您的文件名
推荐阅读
- javascript - 使用 php 和 javascript 向 api 发送消息
- algolia - 如何从我的 Laravel 8 项目中完全删除“algolia/algoliasearch-client-php”
- php - 如何通过 cURL 和 PHP 正确检索 POST 数据?
- php - 用于在网站表单上验证用户电话号码的服务器
- azure - Azure 多租户应用程序使用 RBAC 读取/写入存储帐户
- aws-lambda - 如何将 CloudWatchEvent 从 lambda 发送到 EventBridge 目标
- sql - Oracle SQL 收入 YTD 计算
- python - Python绑定公共IP以在没有相同网络的情况下连接
- redis - 数据库选择来实现一个程序来检索实时会话中的前 10 个投票问题
- junit5 - 是否可以在同一个测试文件中混合 jqwik @Property 方法和 junit5 @Test 方法?