I’ve just learned the hard way the S3 bucket with a name from
S3_BUCKET field that is in the
api/.env.json will be deleted during the cleanup procedure when I will execute
webiny remove-api. This bucket keeps all the pictures on the webpage. However, I found that the database is persistent and all the webpage layout, settings and pictures metadata stays untouched.
I couldn’t successfully reuse the previous database as
webiny deploy-api (Webiny developers - please correct me if I’m wrong) will not populate freshly created S3 bucket if the database already exists. Yes, this bucket will stay empty. This makes the Webiny admin panel useless.
In this point I have two questions:
Is it possible to do the recovery using fresh deployment and existing database? (I want to reuse the webpage layout I created before). I know there are bunch of images preloaded into the S3 bucket during deployment.
What would you recommend as a backup plan? Snapshot of the S3 bucket containing pictures, database, something else?
Thanks in advance for your advice!