migrating files from db to hard disk

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
fenio
Posts: 1
Joined: 31 Jan 2008, 13:46

migrating files from db to hard disk

Post by fenio »

Hello.

I've just take maintainance of rather old mantis installation and previous admin chose DB as a method of storage for files.
I want to change that, cause database is now greater than 500MB,

Did someone try and maybe write some helpful scripts to migrate these files from database to normal files?

regards
fEnIo
vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Re: migrating files from db to hard disk

Post by vboctor »

You can use the move_db2disk.php in the admin/ folder to do that.
Migrate your MantisBT to the MantisHub Cloud
frank2008
Posts: 6
Joined: 06 Nov 2008, 13:14

Re: migrating files from db to hard disk

Post by frank2008 »

when i use this script, it stores the files in my mantis-directory where all the php files are located.
the config setting $g_absolute_path_default_upload_folder seems to be ignored.
i am using mants 1.0.8. is this a bug, that has been fixied in v1.1.4?
can i set the folder that is used to store the files in?
frank2008
Posts: 6
Joined: 06 Nov 2008, 13:14

Re: migrating files from db to hard disk

Post by frank2008 »

when i run this script, all attatchments are saved to the mantis root folder, where all the php files are located also.
the setting of $g_absolute_path_default_upload_folder seems to be ignored.
is that a bug or what can i do to set the destination folder?
i am using v1.0.8
Buga
Posts: 74
Joined: 31 Mar 2008, 12:10

Re: migrating files from db to hard disk

Post by Buga »

before you migrate your db you need to add the destination folders for each project manually.
just click edit project and you will see what I mean.
You need to create the folders before you can ssign them and I needed to give them 777 access. no idea why 700 didnt work
Post Reply