• partiallypro

    (@partiallypro)


    I’m trying to move a number of sites over to Azure websites (100+), and I want to move the media over to Azure blobs and delete it from the in-app storage to save space. I have been able to upload the media to Azure’s blobs using Cyberduck, but I don’t know what in the database to change to make the old media files operate as if they were uploaded with this plugin.

    I don’t know what changes in the database I need to make this work.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter partiallypro

    (@partiallypro)

    I’ve gone in and changed the guid column wp_posts to the blob URLs instead of the /uploads/ in-app storage, but it still shows the in-app storage as the source for the media files in the library and on the site.

    Plugin Contributor Ritesh Patel

    (@ritteshpatel)

    Hi @partiallypro

    You will need to do search and replace in whole database in order to change the URL in content. Azure storage plugin also stores storage related info in attachment meta which can be updated but that requires to regenerate thumbnails.

    Let us know if that helps or not.

    Regards,
    Ritesh

    Thread Starter partiallypro

    (@partiallypro)

    The oddity is that I am searching the entire database and I’m finding no traces of the phrase “/uploads/” in the database which makes me wonder if it’s set elsewhere

    Thread Starter partiallypro

    (@partiallypro)

    Ok, so I finally did get it to work. I don’t know why, but I had to first do a search and replace of the wp_posts table, then regenerate thumbnails and then do a search and replace of the wp_postmeta -after- the regeneration. No idea why. But that seems to do that trick. I’ll update if I find a different step that doesn’t require so many steps.

    Plugin Support Thorsten Ott

    (@tott)

    Thanks @partiallypro, glad this worked out

    @partiallypro a question, why did you moved the data to blob storage? For pricing? Performance? Both?

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Moving to Azure’ is closed to new replies.