如何将一个网站从一个天蓝色网站复制到另一个网站(而不是部署槽)? [英] How do I copy a website from one azure website to another (not deployment slots)?

查看:85
本文介绍了如何将一个网站从一个天蓝色网站复制到另一个网站(而不是部署槽)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在同一订阅中有2个azure网站,我想将该站点从一个站点复制到另一个站点.我知道我可以使用FTP将整个站点复制到本地计算机,然后上传整个站点,但是似乎应该有一种更简便的方法,尤其是考虑到两个站点的FTP主机名相同.

I have 2 azure websites in the same subscription and I want to copy the site from one to another. I know I can copy the entire site down to my local machine using FTP then upload the entire site, but it seems like there should be an easier way, especially considering the FTP hostname is the same for both sites.

这些不是部署槽,所以我不能只在界面中交换它们.

These are not deployment slots, so I can't just swap them in the interface.

谢谢.

推荐答案

您可以使用备份/还原功能.这将从您的站点创建一个ZIP文件,将其存储在您的存储帐户中(包括序列化为XML的配置),然后您可以还原到其他站点/新站点.最后,它基本上无论如何都是在复制文件,但是它可能比通过FTP手动完成文件更有趣.另一个好处是网站的配置也被复制了.这只是一回事.从您的问题尚不清楚,您是要一次还是定期进行复制(我建议在此在其他答复中提到站点复制器).

You can use backup/restore feature. That will create a ZIP file from your site, store it in your storage account (including configuration serialized to XML) and then you can restore to a different/new site. In the end it is basically copying files around anyway, but maybe it is fancier than doing it manually through FTP. Another benefit is that also the website's configuration is copied around. This is one time thing only though. It is not clear from your question whether you want to do copy one time or periodically (that I would suggest the site replicator mentioned in the other response here).

某些链接可能会有所帮助: 备份- http://azure.microsoft.com/zh-我们/documentation/articles/web-sites-backup/ 还原- http://azure.microsoft.com/zh-我们/documentation/articles/web-sites-restore/

Some links which might help: Backup - http://azure.microsoft.com/en-us/documentation/articles/web-sites-backup/ Restore - http://azure.microsoft.com/en-us/documentation/articles/web-sites-restore/

这篇关于如何将一个网站从一个天蓝色网站复制到另一个网站(而不是部署槽)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆