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.

    • kumi@feddit.online
      link
      fedilink
      English
      arrow-up
      1
      ·
      15 hours ago

      NFS works great for media files and stuff but be careful and know what you are doing before you go put database storage on it.

  • harsh3466@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    ·
    14 hours ago

    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.

  • TheFogan@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    16 hours ago

    It’s been a long time, but… wordpress is all sql isn’t it? Shouldn’t it just be, make a backup of the mysql database on the old server, install mysql and restore the database to the new server, and then point the word press servers configuration to the new database?

    • frongt@lemmy.zip
      link
      fedilink
      English
      arrow-up
      2
      ·
      15 hours ago

      Not all sql. A lot is files on disk too, but you should be able to do a backup and restore of all of Wordpress.

  • mbirth 🇬🇧@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    15 hours ago

    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.

  • just_another_person@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    14 hours ago

    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.