I’ve been a bit short sighted. I set up my WordPress instance on a server with… Not a huge amount of space. A year or so later, and now I’m running out. I have another server which I could serve files from, and it’s got loads of space. Is there a way that I could get the Wordpress media library to just… Serve and upload from that one instead? Preferably migrate it there as well.
Too many people I find online get some sort of yuppie answer like an expensive plug-in with an Amazon CDN subscription. I just want to homebrew this. I don’t intend to host the major site assets for the site structure on it, and I’m fine with images taking a little longer to load.
Is WordPress running in docker or on the host is?
What you could do is set up and NFS or smb share on the ote other server, move all the media to that share on the file server and then mount the NFS/b share to the folder on the WordPress server.
Set up the NFS/smb share to mount at boot. WordPress shoudnt wvwn notice the difference.
It depends on what kind of server this is. If it’s cloud-y, then you can just mount another volume and move everything there.
If it’s a amatatic VPS where you can’t uograde or change it at all, you’re not going to find a performance solution without using a CDN or manually mapping to something S3 compatible.
A hacky solution would be to copy all images into a directory on the other server and sshfs-mount that to where WordPress expects it on the current server.
https://wordpress.org/plugins/exmage-wp-image-links/ might fit the bill

