Moving Attachements to Different Directory

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
jsfetzik
Posts: 2
Joined: 04 Jun 2007, 15:32

Moving Attachements to Different Directory

Post by jsfetzik »

I need to move my Mantis installation from one Windows server to another. Everything seems to go smoothly except for attachments. The install on the new server is on a different drive and directory. The attachments are stored on DISK and the absolute path seems to be stored in the database.

So my question is does anyone know a quick and easy way to update the attachment paths?
zakman
Posts: 18
Joined: 04 Mar 2007, 21:16
Location: Cairo, Egypt

Post by zakman »

Try to do it through Manage -> Manage projects, then click on the project name, then you will find a field for Upload file path.

Hope this help you.
Best Regards,
ZakMan
vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post by vboctor »

The easiest way to do it at the moment is as follows:

1. Export the database to SQL (keep an unchanged backup copy).
2. Find and replace the path in the SQL file.
3. Upload the SQL to a different database and point Mantis to it. Or delete all tables and import into the same database.

Please report a bug in the bug tracker regarding this issue.
Migrate your MantisBT to the MantisHub Cloud
jsfetzik
Posts: 2
Joined: 04 Jun 2007, 15:32

Post by jsfetzik »

Thanks for the replies. Ended up using the export, find/replace, import method.
Post Reply