Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Recovery from backup failed

Jaden liang February 24, 2022

I exported the backup file on the old server, The ZIP include entities.xml, and the attachments folder is also copied. After importing zip and recovering XML on the new service, the document is recovered, but the attachment recovery fails. The attachments folder is copied to /var/atlassian/application-data/confluence/attachments and / var /var/atlassian/application-data/confluence/attachments/ver003, including rebuilding the index.

1 answer

0 votes
Fabio Racobaldo _Catworkx_
Community Champion
February 24, 2022

Hi @Jaden liang ,

did u have some error on your logs? Did u selected "Include attachments" property when you performed the backup?

Please, let us know.

Fabio

Jaden liang February 24, 2022

Hi~
I didn't choose to include attachments during backup because the attachments are too large. I chose to copy the attachment folder manually

Fabio Racobaldo _Catworkx_
Community Champion
February 24, 2022

Hi @Jaden liang ,

if attachments are not included into you backup, you should restore them manually using the following how-to guide https://confluence.atlassian.com/doc/retrieving-file-attachments-from-a-backup-187758.html 

Fabio

Jaden liang February 24, 2022

WARN [http-nio-8090-exec-1] [atlassian.confluence.pages.DefaultAttachmentManager] getAttachmentData Could not find data for attachment: Attachment: image2021-9-15_10-44-0.png v.1 (98436660) chenbingrui - com.atlassian.confluence.pages.persistence.dao.filesystem.AttachmentDataFileSystemException: No such file for Attachment: image2021-9-15_10-44-0.png v.1 (98436660) chenbingrui. Were looking at /var/atlassian/application-data/confluence/attachments/ver003/151/118/22118401/159/186/98436659/98436660/1

Fabio Racobaldo _Catworkx_
Community Champion
February 24, 2022
Jaden liang February 24, 2022

Unfortunately, my old server has been damaged and can't do anything in the old server. Is there any other way?

Jaden liang February 24, 2022

Unfortunately, my old server has been damaged and can't do anything in the old server. Is there any other way?

Radek Dostál
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.
February 24, 2022

Any other way, such as conjuring those attachments out of thin air? Do you have those attachments somewhere or not?

You need to have them copied from the source server so you can then process them and "import" them. You cannot just copy paste them somewhere. Pages refer to attachment ids, attachments are separate db entries, attachment paths are built with with space id, page id, (both of these used multiple times in different way) attachment entry ids. Confluence has to process the files to ensure it stores them correctly with correct ids.

Jaden liang February 24, 2022

I have copied the complete attachment folder from the old server, that is, the attachments are completely copied, but these attachments cannot be associated on the new server

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events