[SOLVED] How to store mediawiki data on external ssd

Hi, I have a pioneer edition fb running mediawiki. I installed the mediawiki app via plinth and that’s great but I noticed everything is being stored on the inbuilt storage and not on my ssd connected by sata (its all mounted and everything).

Everything is being stored in /var/lib/ (both media wiki folder and the mediawiki-db folder).

I would prefer to save everything in a folder mounted to my ssd which is /media

  1. is it possible to do this? i.e. can the app access this location?
  2. if so how?

Thanks!

@finlay Ability to store and use data on an external disk is coming in a few months.

Currently, you will need to set this up manually. I haven’t tried this myself but please try the following:

  • Move the directory /var/lib/mediawiki to external drive. The file system on the external drive’s partition must support proper unix ownership and permission. So, use a filesystem like btrfs, ext4, xfs, etc. While copying ensure that permissions and ownership are preserved.
  • Link /var/lib/mediawiki to the new path of the folder.
  • Test everything include backups.

Thanks, I got it to work now - the main thing was getting the mounts and symlink right but i’ve tested it and it’s all working nicely. Thanks for the help.

Thank you for confirming, that helps me and others as well.