Support » Plugin: WP-Stateless - Google Cloud Storage » What regenerate with backup option does?

  • dragorad


    Hi all,

    I have task to deal with a new wp powered website. I need to recover images locally. Question is:

    – What, exactly, happen when I trigger sync -> regenerate (bulk) on all images? Can this mess something with images or it just resize them again and copy them locally?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Alim


    Hi @dragorad,

    What, exactly, happen when I trigger sync -> regenerate (bulk) on all images?

    • First image is downloaded to server if not already exist.
    • Then regeneration is triggered and all sizes is generated.
    • Then image is synced again to GCS.
    • Then if Stateless mode is selected image from server is deleted. Otherwise in CDN/Backup mode the copy of image in server don’t get deleted.


    I sow your answer today. Thanks, @alimuzzamanalim for your answer. I have one more question about this:

    I have a production and staging server. If I do bulk sync on a staging server to regenerate images with backup option can something happen to images on the production server or on Google Cloud so I lost images on production? Can anything change there? Urls? Anything? Is it 100% sure that there will be images available on both servers?

    • This reply was modified 7 months, 3 weeks ago by dragorad.

    After all, I decided to work only on the production server. So the staging server is not in this story.

    Last night I triggered regenerate on all images. Of course, the backup option was on and bulk was set to 20. After a few minutes process was stuck due to an error. After that, I run the process again with a bulk set to 1 and it runs for 6 hours and processed just 300 images. One of the images took 295 seconds to proceed! After that, I stopped the process. When I checked what happened I sow that many images are missing. I see them on the back like small icons in media library but there are many which are not present as featured images or in posts etc.

    I checked logs, it seems that images which are processed are ok but those who were on Google cloud are now missing! How to solve this issue?

    Steps @alimuzzamanalim says in the first reply are not all. It seems that something is done in the database at the beginning of the process. Can you help me and point somewhere?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘What regenerate with backup option does?’ is closed to new replies.