Report this

What is the reason for this report?

Add Volume to wordpress/content/uploads

Posted on March 11, 2018

Hello,

I have a WordPress site, how can I expand the current storage? Because if I buy Volumes it will be like if I plugged in another HD to my computer, is it possible to expand the existing volume into purchased block storage so that I don’t have to move the WordPress content folder?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

It’s not possible to extend your existing filesystem with a Block Storage volume without modifying the filesystem. Is there any reason why you don’t want to move the content folder to the Volume? That’s the easiest and simplest way to do it. You can use a symlink so that you wouldn’t need to change any Wordpress settings or risk breaking plugins etc.

For example, if your Volume is mounted under /mnt/storage, you can move the content folder to it and then create a symlink that points to it:

sudo mv /path/to/wordpress/content /mnt/storage/
sudo ln -s /mnt/storage/content /path/to/wordpress/content

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.