方式: 从数据库获取所有文档ID&标题,调用exportword接口
1. 登录数据库
# 登录到confluence服务器所在机器,找到配置文件
more /var/atlassian/application-data/confluence/confluence.cfg.xml
# <property name="hibernate.connection.password">password</property>
# <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/confluence</property>
# <property name="hibernate.connection.username">root</property>
2. 查找所有文章
select CONTENTID,TITLE from CONTENT where CONTENTTYPE = 'PAGE' and PREVVER is null and CONTENT_STATUS = 'current';
3. 循环调用导出接口将文件保存到本地
http://wiki.xxxx.com/exportword?pageId={{CONTENTID}}