Is there any way to download all attachments en masse from a space or multiple spaces?

Tad Foster
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 23, 2023

The Need: Administrator needs to effectively download a large volume (1000+) of attachments from one or more spaces in order to relocate them to a more appropriate long term storage solution in a timely manner.

The reason for this: Reduce Space size (Confluence Guardrail)

1 answer

1 accepted

1 vote
Answer accepted
Ash Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 23, 2023

Hi @Tad Foster 

 

Have you seen this article?

https://confluence.atlassian.com/confkb/how-to-relocate-the-attachments-storage-directory-318668908.html#:~:text=On%20S3%20object%20storage%2C%20attachments,on%20the%20prefix%20%2Fconfluence%2Fattachments 

 

Appears to be what you're looking for and much quicker than just downloading them from the spaces themselves and re-uploading. 

 

KR, 

Ash 

Tad Foster
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 26, 2023

Hello Ash, 
I appreciate the response and I had not seen this article. Although, this is more of an All OR None approach, it may be the only solution available. I was hoping for more of a way to manage (Migrate) the attachment volume at the space level.

Thank you,
Tad

Like patricia likes this
Ash Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 27, 2023

Hey @Tad Foster 

 

I don't believe there is a way to do it just for attachments. 

You could in theory export the entire spaces one by one including all attachments but that might be quite cumbersome and may not yield the results you're looking for but that is more of a space by space approach if that's what you're after. 

There's a detailed thread on it here: https://community.atlassian.com/t5/Confluence-questions/Export-spaces-and-attachments/qaq-p/135920

 

Hope this helps. 

 

Kind Regards, 

Ash 

Like Tad Foster likes this
Tad Foster
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 29, 2023

Thanks Ash! I found in that thread a post from Bob Swift that looks promising: "

Yes, using Confluence Command Line Interface. Use runFromAttachmentList for the specific space and combine with getAttachment. Example:

confluence --action runFromAttachmentList --space ABC --common "--action getAttachment --id @pageId@ --file \"temp/@attachment@\" --name \"@attachment@\" "

"

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
7.19.6
TAGS
AUG Leaders

Atlassian Community Events