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.
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
Hi~
I didn't choose to include attachments during backup because the attachments are too large. I chose to copy the attachment folder manually
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please follow instruction at this page https://confluence.atlassian.com/doc/retrieving-file-attachments-from-a-backup-187758.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Unfortunately, my old server has been damaged and can't do anything in the old server. Is there any other way?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Unfortunately, my old server has been damaged and can't do anything in the old server. Is there any other way?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.