Page 1 of 1
Moving Attachements to Different Directory
Posted: 04 Jun 2007, 16:09
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?
Posted: 04 Jun 2007, 22:27
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.
Posted: 05 Jun 2007, 05:55
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.
Posted: 05 Jun 2007, 13:03
by jsfetzik
Thanks for the replies. Ended up using the export, find/replace, import method.