클라이언트 액세스 서버를 백업하고 복구하는 방법

 

적용 대상: Exchange Server 2007 SP3, Exchange Server 2007 SP2, Exchange Server 2007 SP1, Exchange Server 2007

마지막으로 수정된 항목: 2007-03-26

이 항목에서는 Exchange 관리 셸을 사용하여 클라이언트 액세스 서버가 Microsoft Office Outlook Web Access 가상 디렉터리 구성 데이터를 저장하는 데 사용하는 IIS(인터넷 정보 서비스) 메타베이스 데이터를 백업하고 복원하는 방법에 대해 설명합니다.

중요

이 항목에 포함된 스크립트와 절차는 이 작업을 완료하기 위해 사용할 수 있는 한 가지 방법을 예로 든 것입니다. 프로덕션 환경에서 이러한 기술을 사용하기 전에 먼저 테스트 환경에서 테스트하십시오.

시작하기 전에

다음 절차를 수행하려면 사용하는 계정이 Exchange 관리자 역할 및 대상 서버에 대한 로컬 관리자 그룹을 위임받아야 합니다. 사용 권한, 역할 위임 및 Microsoft Exchange Server 2007 관리에 필요한 권한에 대한 자세한 내용은 사용 권한 고려 사항을 참조하십시오.

예로 든 이러한 복원 절차를 수행하려면 Exchange \bin 폴더에 아래 예와 비슷한 스크립트를 만들어야 합니다.

$ErrorActionPreference = 'stop'
$savedprops = @(
'DirectFileAccessOnPublicComputersEnabled',
'DirectFileAccessOnPrivateComputersEnabled',
'WebReadyDocumentViewingOnPublicComputersEnabled',
'WebReadyDocumentViewingOnPrivateComputersEnabled',
'ForceWebReadyDocumentViewingFirstOnPublicComputers',
'ForceWebReadyDocumentViewingFirstOnPrivateComputers',
'RemoteDocumentsActionForUnknownServers',
'ActionForUnknownFileAndMIMETypes',
'WebReadyFileTypes',
'WebReadyMimeTypes',
'WebReadyDocumentViewingForAllSupportedTypes',
'AllowedFileTypes',
'AllowedMimeTypes',
'ForceSaveFileTypes',
'ForceSaveMimeTypes',
'BlockedFileTypes',
'BlockedMimeTypes',
'RemoteDocumentsAllowedServers',
'RemoteDocumentsBlockedServers',
'RemoteDocumentsInternalDomainSuffixList',
'LogonFormat',
'ClientAuthCleanupLevel',
'DefaultDomain',
'FormsAuthentication',
'BasicAuthentication',
'DigestAuthentication',
'WindowsAuthentication',
'GzipLevel',
'FilterWebBeaconsAndHtmlForms',
'NotificationInterval',
'DefaultTheme',
'UserContextTimeout',
'ExchwebProxyDestination',
'VirtualDirectoryType',
'RedirectToOptimalOWAServer',
'DefaultClientLanguage',
'LogonAndErrorLanguage',
'UseGB18030',
'UseISO885915',
'OutboundCharset',
'CalendarEnabled',
'ContactsEnabled',
'TasksEnabled',
'JournalEnabled',
'NotesEnabled',
'RemindersAndNotificationsEnabled',
'PremiumClientEnabled',
'SpellCheckerEnabled',
'SearchFoldersEnabled',
'SignaturesEnabled',
'ThemeSelectionEnabled',
'JunkEmailEnabled',
'UMIntegrationEnabled',
'WSSAccessOnPublicComputersEnabled',
'WSSAccessOnPrivateComputersEnabled',
'ChangePasswordEnabled',
'UNCAccessOnPublicComputersEnabled',
'UNCAccessOnPrivateComputersEnabled',
'ActiveSyncIntegrationEnabled',
'AllAddressListsEnabled',
'InternalUrl',
'ExternalUrl'
)

$vdir = import-clixml $args[0]

'Recreating "' + $vdir.name + '"' + ' owa version: ' + $vdir.owaversion
if ($vdir.owaversion -eq 'Exchange2007') {
new-owavirtualdirectory -website $vdir.website -internalurl $vdir.internalurl -externalurl $vdir.externalurl
}
else {
new-owavirtualdirectory -website $vdir.website -owaversion $vdir.owaversion -name $vdir.displayname -virtualdirectorytype $vdir.virtualdirectorytype
}
$new = get-owavirtualdirectory $vdir.name
'Restoring properties'
foreach ($prop in $savedprops) {
if ($prop -eq 'ExchwebProxyDestination' -or $prop -eq 'VirtualDirectoryType') {
continue
}
$new.$prop = $vdir.$prop
}
$new | set-owavirtualdirectory

참고

아래 절차에서 이 스크립트의 이름은 restorevdir.ps1입니다.

절차

클라이언트 액세스 서버의 IIS 구성을 백업하려면 다음을 수행합니다.

  • 아래 Exchange 관리 셸 명령을 실행합니다.

    get-owavirtualdirectory "owa (default web site)" | export-clixml owa.xml -depth 1
    

클라이언트 액세스 서버의 IIS 구성을 복원하려면 다음을 수행합니다.

  • 아래 Exchange 관리 셸 명령을 실행합니다.

    restorevdir.ps1 owa.xml
    

추가 정보

클라이언트 액세스 서버에 백업 시 필요한 데이터에 대한 자세한 내용은 클라이언트 액세스 서버 데이터를 참조하십시오.