---
title: "PCJ:How to manually migrate attachments"
canonical: "https://support.appfire.com/space/SUPPORT/80884516/PCJ%3AHow%20to%20manually%20migrate%20attachments"
format: markdown
---
<span style="color: #000000">When migrating a large project which contains lots of issues and attachments then this can be a very resource intensive process which can cause the export to take a long time to complete or to fail with running out of memory and becoming corrupted.</span>

<span style="color: #000000">In order to avoid this happening when migrating projects which contain lots of issues and attachments then we would advise manually migrating attachments by following the instructions below.</span>

> ✅ <span style="color: #000000">Exports without attachments will be smaller in size and will be easier to transfer between the source and target server.</span>

## <span style="color: #000000">Step-by-step Guide</span>

1. <span style="color: #000000">On the export screen ensure that the </span>**<span style="color: #000000">Attachment Mode </span>**<span style="color: #000000">drop-down is set to </span>**<span style="color: #000000">Manual to</span>**<span style="color: #000000"> generate an export without attachments.</span>
2. <span style="color: #000000">Copy the attachments over to the </span>**<span style="color: #000000">/tmp </span>**<span style="color: #000000">directory on the target server using a tool such as </span>**<span style="color: #000000">SCP</span>**<span style="color: #000000"> or </span>**<span style="color: #000000">WinSCP</span>**<span style="color: #000000">. Usually, the attachments are stored in the location of </span>**<span style="color: #000000"><JiraHomeDirectory>/data/attachments </span>**<span style="color: #000000">but you will need to check what the attachment directory for your server has been configured to.</span>
3. <span style="color: #000000">On the import screen, specify the path to the copied attachments in the </span>**<span style="color: #000000">Attachments Path box</span>**<span style="color: #000000">. </span>
4. <span style="color: #000000">Run the import and Project Configurator will copy in the attachments as part of the import process.</span>


> ⚠️ After copying the attachments over to the **/tmp** directory on the target server then you should ensure that their permissions are set to be owned by the same **operating system user and group** that Jira is running under before running the import.


## <span style="color: #000000">Related Articles</span>



> Macro (contentbylabel)

> Macro (details)
> 
> | **Related issues** |  |
> | --- | --- |