Question

Add Volume to wordpress/content/uploads

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?


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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