umbraco / Umbraco.Cloud.Issues

Public issue tracker for Umbraco Cloud
26 stars 2 forks source link

Add the ability to automatically clone all content/media/etc. on new environment creation #826

Open hfloyd opened 3 months ago

hfloyd commented 3 months ago

Issue description

When creating a new environment for an existing site, It is PAINFUL to spend so much time fighting deploy timeout errors in order to just get an exact duplicate of the live site - Using the back-office you have to Restore Forms, Content, Media... The Import/Export can help a bit, but due to size limitations and all the processing Deploy does (checking for dependencies, etc.) It takes a long time with lots of babysitting.

It seems to me that there would be more straightforward ways for a site to be "cloned" directly on the back-end of Cloud. Couldn't a database copy just be made/restored automatically to the newly created environment? Would it be possible for the existing Azure Image storage to just get copied over to the new environment's storage?

I can't really think of a circumstance where I'd create a new environment and WANT it to be empty, but if you think there is a use-case for that, then could there just be an option provided when clicking "Create new xxx environment" to "Clone all Content, etc."?

Thank you!

hfloyd commented 3 months ago

Ps. I see @callumbwhyte suggested something similar here, but it was lost in the conversation about DB backup access:

Provide a checkbox when creating a new environment to clone XYZ environment. You can easily perform a database copy and AZ-Copy for us on the backend.