ElkArte Community

Project Support => Support => Topic started by: radu81 on November 18, 2018, 07:04:23 am

Title: Move attachments folder
Post by: radu81 on November 18, 2018, 07:04:23 am
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
Title: Re: Move attachments folder
Post by: ahrasis on November 18, 2018, 09:49:05 am
I'd go for symlink too though I never tested this as well.
Title: Re: Move attachments folder
Post by: emanuele on November 24, 2018, 03:19:53 pm
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.)