Store attachments on an external drive in Windows
If you want to store the MindTouch attachments, which are currently stored at C:\Program Files\MindTouch\MindTouch\data\file, on an external server, do the following steps:
- Verify that the server that MindTouch is hosted on has read/write access to the server you want to store the attachments on
- Notify users of a 10 min downtime as you don't want uploads to be lost while you are making the switch, should be less but depends on how many attachments you have to move
- Copy the contents of C:\Program Files\MindTouch\MindTouch\data\files and move them to the desired shared drive that you want to store the attachments on
- Go to the MindTouch and navigate to the following: Control Panel -> System Settings -> Configuration and edit the following key:
storage/fs/path
Set the value for the key to the path where you want to store your MindTouch attachments - Restart the MindTouch website in IIS
- Try uploading a file to your MindTouch install and confirm that it was added to the new destination
Store attachments on an external drive in Linux
- Make sure that the drive you want to store the attachments on is mounted to the server that MindTouch is hosted on and writable by the MindTouch user or the apache user depending on your MindTouch configuration. Check the permissions on the attachments directory and make sure the share mirrors it.
- Notify users of a 10 min downtime as you don't want uploads to be lost while you are making the switch, should be less but depends on how many attachments you have to move
- Copy the contents of /var/www/dekiwiki/attachments and move them to the desired shared drive that you want to store the attachments on
- Once the share is mounted then go to the MindTouch and navigate to the following: Control Panel -> System Settings -> Configuration and edit the following key:
storage/fs/path
Set the calue for the key to the path where you want to store the MindTouch Attachments - Restart the MindTouch API: /etc/init.d/dekiwiki restart
- Try uploading a file to see if it uploads correctly and to the correct location