• What I’m trying to do is the following:

    – Copy a WordPress website to another server, except the wp-content/uploads folder.
    – On the new server install WP-Stateless and configure to create a GCS Bucket.
    – Upload the wp-content/uploads to the GCS Bucket according to the settings in the WP-Stateless plugin.

    Newly uploaded files are now loaded from the GCS Bucket, but old files are still referencing to the wp-content/uploads folder which has no content. In the database I see that when new media is uploaded, an entry is created in the wp_postmeta (meta_key = ‘sm_cloud’) containing information about the location of the file in the GCS Bucket. As WP-Stateless was not installed on the WordPress website on the previous server, these entries do not exist for the original media.

    As the folder organization in the GCS Bucket is still in line with the wp-content/uploads folder, is it sufficient to add similar entries to the wp_postmeta table for each media? Or is there another way to index these images?

    Thanks!

    • This topic was modified 4 years, 7 months ago by hynostia.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Index older images’ is closed to new replies.