Move attachments folder
Hi all,
I actually host more than one website on a small VPS and CPU and RAM usage are enough for my needs, they are both under 50% of the resources available. I am starting getting low disk space and the quickest solution is to upgrade to a bigger plan, but I don't need more RAM and CPU. Many vps providers like Linode, DO, Hetzner, etc are offering "block storage" or "volume storage" which is much cheaper than an upgrade to a superior plan. My provider is offering 10GB for only 0,5€/month, I can choose the amount up to 10 TB.
How block storage are working? It's a simple volume mounted at /mnt/name_volume
I am wondering if I can move the attachments folder to that volume?
The first thing that came in my mind is:
- move the attachments folder to /mnt/name_volume/attachments
- remove the attachments folder from my forum
- create a symlink from attachments folder to /mnt/volume/attachments
I'm not sure this will work, probably not, I need to test it. Are there any other alternatives to store the attachments to a volume?
Thank you in advance
Re: Move attachments folder
Reply #1 –
I'd go for symlink too though I never tested this as well.
Re: Move attachments folder
Reply #2 –
My first idea was a symlink as well, it should work.
Otherwise, you can change the directory in Elk admin panel and you should be good. (Do backup first and maybe also a test on a dummy forum first, I wouldn't, better safe than sorry.)