Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have an old Umbraco Cloud project and I'm thinking of transferring content to a new Umbraco Cloud project from that old project (these projects will be in entirely different Umbraco Cloud accounts). I was thinking of using Umbraco Deploy to do this. Here is roughly what I'm thinking:
I have no idea if this is possible. Here are some of my concerns:
Just wondering if anybody has tried this before, or if anybody knows some reasons this won't work, or has tips on how to accomplish it. Perhaps there are some complications I'm not thinking of that you could mention as well.
Hi Nick -
I believe you can configure the two projects in question to do this, but I doubt it's strictly supported as you outline it. Before you go too far down this road, have you looked at the Baseline feature? We use it across multiple projects to keep schema in-sync (a pre-req for a cross-project content deployment) and it may help simplify some of the complexity.
Assuming your projects have an identical schema (see above) I think you will need to update each project's umbracoDeploy.config to tell Deploy about any source/destination environments. Then, and this is part I'm not sure about, you'll need to set the Umbraco.Deploy.ApiKey in web.config so the key matches in the source and destination environments. I'd for sure keep a backup of any keys you change ;-)
With that, you should be able to restore from (or deploy to) a known environment.
Full disclosure: I've never tried this and don't know if the Umbraco.Deploy.ApiKey is something you can actually change or if it has deeper connections within the overall function of deployments.
Let us know if that puts you on the right track.
Some useful information, thanks. That should help me at least setup a test to see if this will work.
I am aware of the Baseline feature, but I don't think it will work in this case, as the projects are located in different Umbraco Cloud accounts.
I was able to do this. Here are some steps and other notes for anybody who is curious:
Thanks again, Paul, for your tips.
Code snippet for UmbracoDeploy.Settings.config:
<?xml version="1.0" encoding="utf-8"?>
<deploy sessionTimeout="1800" sourceDeployTimeout="1800" httpClientTimeout="1800"/>
Code snippet to resave all media nodes:
var allMedia = Umbraco.TypedMediaAtRoot().SelectMany(x => x.DescendantsOrSelf())
.Select(x => x.GetKey())
// Need to process less than 2,000 at a time.
var mediaService = ApplicationContext.Services.MediaService;
var mediaNodes = mediaService.GetByIds(allMedia);
foreach (var item in mediaNodes)
Summary: I was able to transfer the content from one Umbraco Cloud project on one account to a different Umbraco Cloud project on a different account.
Thanks for posting the solution, this is what I actually need for my upcoming project since I'll be using my own Account to do the development and then transfer it to my client once it is complete.
You saved me from a lot of headaches :)
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted