重新命名网站集(Newmodern) [英] Re-Name Site Collections (Newmodern)

查看:61
本文介绍了重新命名网站集(Newmodern)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,大家,



目前有一种方法可以在Modernnew中再次更改网站集URL吗?

我最喜欢的可能性是PowerShell和备份/恢复版本。



我会对有用的评论和提示感到非常满意。



亲切的问候!

Hello, everybody,

is there currently a way to change the Site Collections URL again in Modernnew?
My favorite used to possibility was PowerShell and the Backup/Restore variant.

I would be very pleased about helpful remarks and tips.

Kind regards!

推荐答案

你好maxiismyname。

Hi maxiismyname.

为了更改网站集的URL,第一步是使用

Backup-SPSite
cmdlet。

然后使用以下内容为要恢复的网站集创建单独的内容数据库

New-SPContentDatabase
cmdlet如下低价

In order to change a site collection's URL, the first step is taking a site collection's backup using the Backup-SPSite cmdlet.
Then create a separate content database for the to be restored site collection using the New-SPContentDatabase cmdlet as following

New-SPContentDatabase< DatabaseName> -DatabaseServer< DatabaseServerName> -WebApplication< WebApplicationURL>

New-SPContentDatabase <DatabaseName> -DatabaseServer <DatabaseServerName> -WebApplication <WebApplicationURL>

其中< DatabaseName>是新内容数据库的名称,< DatabaseServerName>是数据库服务器的名称和< WebApplicationURL>是托管网站集的Web应用程序的URL。

最后,您可以使用

Restore-SPSite
cmdlet

where <DatabaseName> is the name of the new content database, <DatabaseServerName> is the name of the database server and <WebApplicationURL> is the URL of the web application that will host the site collection.
Finally, you can restore the site collection with the new URL in the newly created content database using the Restore-SPSite cmdlet

Restore-SPSite< NewSiteCollectionURL> -Path< PathToBackupFile> -Force -DatabaseServer< DatabaseServerName> -DatabaseName< ContentDatabaseName>

Restore-SPSite <NewSiteCollectionURL> -Path <PathToBackupFile> -Force -DatabaseServer <DatabaseServerName> -DatabaseName <ContentDatabaseName>

其中< NewSiteCollectionURL>是网站集的新URL,< PathToBackupFile>是网站集的备份文件的完整路径,< DatabaseServerName>是数据库服务器的名称和< ContentDatabaseName>是
新创建的内容数据库的名称。

where <NewSiteCollectionURL> is the new URL for the site collection, <PathToBackupFile> is the full path to the backup file of the site collection, <DatabaseServerName> is the name of the databse server and <ContentDatabaseName> is the name of the newly created content database.

再见。


这篇关于重新命名网站集(Newmodern)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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