When you have content on your Cloud environment and you clone down your Umbraco Cloud project to your local machine, you will need to do an extra step, in order to see your content locally. You will also need to use the restore option when setting up new Umbraco Cloud environments.
The restore option also comes in really handy when you have content editors creating content on the Live or Staging environments. You will be able to restore and work with that content on your Development and local environments.
There is a total of three ways to restore content.
- Restore when starting up the project locally
- Restore everything through the Umbraco backoffice
- Partial Restores
Restore when starting up the project locally
The first time you run your project locally you will have the option to restore your content and media before going to the Umbraco backoffice.
This will restore all content nodes, and any media dependencies.
- When your site is done spinning up, click the green Restore button - this will restore all content and media!
- Wait till the process completes - this might take a while, depending on the amount of content and media you have on your project
- When it's complete select Open Umbraco to go to the backoffice
- You will now see all your content and media in the Umbraco backoffice
Restore everything through the Umbraco backoffice
The second option for restoring your content and media is found in the Umbraco backoffice - use this option when setting up new Cloud environments.
- Go to the Umbraco backoffice on the environment you want to restore content and media to
- Click the three dots an select Do something else, or Right-click the Content Tree
- Choose Restore from the menu
- You will now have the option to restore content from any Cloud environment that's to the right of the current environment in the deployment workflow
- To ensure the restore will succeed, make sure that your environments have the same meta data and structure files
- Click Restore from .. and wait till the process completes - this might take a while, depending on the amount of content and media you have on your project
- When it's done, right-click the Content tree again and choose Reload to see your content in the tree
If any of your content nodes depends on media items, these will also be restored in the process.
To see the media, go to the Media section and reload the tree.
By using the Partial Restore option, you can make sure that you only restore the part of the content that you need to work with.