Forums

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

Migrating attachments from Cloud to hosted server

Tom Lister
Community Champion
February 11, 2019

Hi

I'm having an issue during a server migration which the docs don't explain. I am migrating a service desk from cloud to our own AWS hosted server.

I have exported (for server) from the cloud server and imported into a staging instance of Jira. All good and the attachments are recognised.

When I export from staging to a development server the import succeeds for all issues but the attachments are missing. I've tried copying the attachment directory over before importing but to no avail.

I see in the database that the links are present in the table fileattachment in staging but missing in development.

my next attempt is to put the attachment directory into the zip file before importing it.

Anyone got any top tips for this?

1 answer

1 accepted

0 votes
Answer accepted
Alexey Matveev
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 11, 2019

Hello,

Just copy the data/attachment directory from staging to development. Attachments do not need to be in the backup

Tom Lister
Community Champion
February 11, 2019

Hi Alexey

That's what I've always thought bit for some reason I'm not getting them linked to imported issues.

I'll dig deeper and see if there are any errors being reported.

Tom Lister
Community Champion
February 11, 2019

Hi

I can now see that the project import preview screen is showing

The provided attachment path does not contain a sub-directory called 'CSD'. If you proceed with the import attachments will not be included.

but the staging system has attachments at

C:\JIRA2\Application Data\JIRA\data\attachments\CSD

and the target system has a copy of that at

C:\JIRA\Atlassian\Application Data\JIRA\data\attachments\CSD

and the possible cause may be

The attachments directory may have been copied over to <JIRA_HOME> /data/attachments folder but should have been copied over to <JIRA_HOME> /import/attachments.

Not clear from docs! I'll give this approach a whirl.

Tom Lister
Community Champion
February 11, 2019

Ok

That works copying to <JIRA_HOME> /import/attachments before running project import screen.

Can I accept my own answer:-)

Like Jim Wiedman likes this
Alexey Matveev
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 11, 2019

You can. Why not? :)

Suggest an answer

Log in or Sign up to answer