Posts

Showing posts with the label Windows Server Backup

E14 – 一般Windows Server Backup 備份E14 - 建議用WBadmin command 取代GUI 排程

Image
    l 非DAG 資料庫備份,單純E14 一般DB l 原先透過GUI 設定排程正常備份及truncate log l 近來出現備份警告,有完成備份,但無truncate log l 有重設job 及調整備份路徑無效 l 爬文後,改為透過wbadmin (同DAG 設定job 方式) 設定backup job,即可完成正常備份及truncate log Exchange 2010 - Full backups with Windows Backup Not Clearing Transaction Logs http://social.technet.microsoft.com/Forums/windowsserver/en-US/093b7a8b-d4e8-46d3-b8a0-b3546a08bd9a/exchange-2010-full-backups-with-windows-backup-not-clearing-transaction-logs

Ref: E2010 WSB does not support passive database copies (DAG)

    http://exchangeserverpro.com/exchange-2010-passive-database-copies-included-backups-dag-members   So what do we learn from this? Reminder, the below should be read in conjunction with the notice at the start of the article, as backing up passive database copies using Windows Server Backup is not a supported scenario Yes, passive database copies stored on a volume are backed up by Windows Server Backup Yes, this allows backups of passive database copies to be restored, although not directly Yes, this would allow a backup of a passive database copy to be used for disaster recovery of a database No, the backup time stamp is not written when a passive database copy is backed up, so any monitoring of backups that involves checking that time stamp needs to take that into consideration http://blog.chrislehr.com/2010/03/exchange-2010-dag-backups-using-windows.htm

LAB: Exchange 2010 Recovery by WSB

Image
  http://www.simple-talk.com/sysadmin/exchange/restoring-exchange-server-2010-using-windows-server-backup/ http://exchangeserverpro.com/restore-individual-mailbox-exchange-2010                                   http://technet.microsoft.com/en-us/library/bb125218.aspx    

E14– Windows Server Backup on DAG–Part6-BalanceDbsByActivationPreference

Image
    1. @echo off For /f "tokens=1-3 delims=/ " %%a in ('date /t') do (set date=%%a-%%b-%%c) For /f "tokens=1-2 delims=: " %%a in ('time /t') do (set time=%%a:%%b) rem echo The date is %date% rem echo The time is %time% set backuplog="c:\batch\WSB\BackupLog\"%computername%-WSB.txt"" echo. Start:%date%  %time%  >> %backuplog% echo. ================================== >> %backuplog% Rem ================================== wbadmin start backup  -backupTarget:B: -include:P:,S:,T:,U:,V:,W:  -vssFull -quiet >> %backuplog% Rem ================================== echo. ================================== >> %backuplog% echo. End    >> %backuplog% For /f "tokens=1-3 delims=/ " %%a in...

E14– Windows Server Backup on DAG–Part5–Process WSB on DAG active node

Image
  1.   2. @echo off For /f "tokens=1-3 delims=/ " %%a in ('date /t') do (set date=%%a-%%b-%%c) For /f "tokens=1-2 delims=: " %%a in ('time /t') do (set time=%%a:%%b) rem echo The date is %date% rem echo The time is %time% set backuplog="c:\batch\WSB\BackupLog\"%computername%-WSB.txt"" echo. Start:%date%  %time%  >> %backuplog% echo. ================================== >> %backuplog% Rem ================================== wbadmin start backup  -backupTarget:B: -include:P:,S:,T:,U:,V:,W:  -vssFull -quiet >> %backuplog% Rem ================================== echo. ================================== >> %backuplog% echo. End    >> %backuplog%...

E14– Windows Server Backup on DAG–Part4–Process WSB on DAG passive node

Image
  1. echo off For /f "tokens=1-3 delims=/ " %%a in ('date /t') do (set date=%%a-%%b-%%c) For /f "tokens=1-2 delims=: " %%a in ('time /t') do (set time=%%a:%%b) rem echo The date is %date% rem echo The time is %time% Rem ================================== PowerShell.exe -command ". C:\Batch\WSB\PS_RedistributeActiveDatabase_before-WSB.ps1" Rem ================================== Cscript C:\Batch\WSB\DB_Active_Notify.vbs Rem ================================== del  "C:\Batch\WSB\DB_Activation_Log\DB_Activation.txt" Timeout /T 100 Rem ================================== Rem ================================== set backuplog="c:\batch\WSB\BackupLog\"%computername%-WSB.txt"" echo. Start:%date%  %time%  >> %backuplog% ...

E14– Windows Server Backup on DAG–Part3–Notify DB Status before process WSB

Image
  1. echo off For /f "tokens=1-3 delims=/ " %%a in ('date /t') do (set date=%%a-%%b-%%c) For /f "tokens=1-2 delims=: " %%a in ('time /t') do (set time=%%a:%%b) rem echo The date is %date% rem echo The time is %time% Rem ================================== PowerShell.exe -command ". C:\Batch\WSB\PS_RedistributeActiveDatabase_before-WSB.ps1" Rem ================================== Cscript C:\Batch\WSB\DB_Active_Notify.vbs Rem ================================== del  "C:\Batch\WSB\DB_Activation_Log\DB_Activation.txt" Timeout /T 100 Rem ================================== Rem ================================== set backuplog="c:\batch\WSB\BackupLog\"%computername%-WSB.txt"" echo. Start:%date%  %tim...

E14– Windows Server Backup on DAG–Part2– Redistribute Active Database before WSB

Image
  1. on MBX01 – Run the batch on week day 1,3,5 echo off For /f "tokens=1-3 delims=/ " %%a in ('date /t') do (set date=%%a-%%b-%%c) For /f "tokens=1-2 delims=: " %%a in ('time /t') do (set time=%%a:%%b) rem echo The date is %date% rem echo The time is %time% Rem ================================== PowerShell.exe -command ". C:\Batch\WSB\PS_RedistributeActiveDatabase_before-WSB.ps1" Rem ================================== Cscript C:\Batch\WSB\DB_Active_Notify.vbs Rem ================================== del  "C:\Batch\WSB\DB_Activation_Log\DB_Activation.txt" Timeout /T 100 Rem ================================== Rem ================================== set backuplog="c:\batch\WSB\BackupLog\"%computername%-WSB.txt"" ...

E14– Windows Server Backup on DAG–Part1–Overview

Image
  1.   2. Separate batch for week days Mon, Wed & Fri/ Sun, Tue, Thu, Sat   3. Review the batch echo off For /f "tokens=1-3 delims=/ " %%a in ('date /t') do (set date=%%a-%%b-%%c) For /f "tokens=1-2 delims=: " %%a in ('time /t') do (set time=%%a:%%b) rem echo The date is %date% rem echo The time is %time% Rem ================================== PowerShell.exe -command ". C:\Batch\WSB\PS_RedistributeActiveDatabase_before-WSB.ps1" Rem ================================== Cscript C:\Batch\WSB\DB_Active_Notify.vbs Rem ================================== del  "C:\Batch\WSB\DB_Activation_Log\DB_Activation.txt" Timeout /T 100 Rem ================================== Rem ========================...

LAB: Exchange 2010 DAG – Windows Server Backup & Restore –Step4

Image
使用復原資料庫還原資料 復原資料庫 (RDB) 是特殊種類的信箱資料庫,可讓您裝載還原的信箱資料庫,並在復原作業中從還原的資料庫擷取資料。在建立 RDB 之後,可以使用您的備份應用程式將信箱資料庫還原到 RDB 中 (或是將資料庫及其記錄檔案複製到 RDB 檔案結構,讓它存在於檔案系統中)。然後您可以使用 Restore-Mailbox 指令程式,從還原的資料庫擷取資料。在擷取之後,便可以將資料匯出至資料夾或合併到現有的信箱中。RDB 可讓您從資料庫的備份或副本中復原資料,而不會干擾使用者存取目前的資料。 要尋找與 RDB 相關的其他管理工作嗎?請參閱 復原資料庫 。 Restore-Mailbox –Identity “DisplayName of RDB mailbox” –RecoveryDatabase “RDB” –RecoveryMailbox “Display Name of Target Mailbox” –TargetFolder “target folder of mailbox” 1. 進行還原,RecoveryMailbox 要設定 DisplayName 2. 還原中 3. 還原結果 4. Outlook 匯入還原的資料

LAB: Exchange 2010 DAG – Windows Server Backup & Restore –Step3

Image
復原資料庫 Microsoft Exchange Server 2010 支援直接將資料還原至復原資料庫。系統管理員可以復原資料庫方式裝載已復原資料,還原個別信箱或信箱中個別項目。以下為還原至復原資料庫的兩種方式: 如果已經有復原資料庫,則應用程式可以卸載資料庫、將資料還原至復原資料庫與記錄檔,然後重新裝載資料庫。 資料庫與記錄檔可以還原至磁碟的任何位置。Exchange 會分析還原的資料並重新播放交易記錄以顯示最新的資料庫,接著您可以設定復原資料庫以指向已經復原的資料庫檔案 信箱資料庫和復原資料庫差異 RDB 在以下幾個方面不同於標準的信箱資料庫: RDB 是以 Exchange 管理命令介面來建立。 RDB 無法收發郵件。系統會封鎖對 RDB 的所有用戶端通訊協定 (包括 SMTP、POP3 與 IMAP4) 的存取功能。這項設計可預防有人透過 RDB 將郵件插入郵件系統,或從中移除郵件。 系統會封鎖透過 Microsoft Office Outlook 或 Outlook Web App 對用戶端 MAPI 的存取。RDB 支援 MAPI 存取,但是僅限於復原工具及相關應用程式。當您使用 MAPI 登入 RDB 的信箱時,必須同時指定信箱 GUID 與資料庫 GUID。 RDB 信箱無法連接到使用者帳戶。若要允許使用者存取 RDB 中某個信箱的資料,必須將該信箱合併到現有信箱,或是匯出至資料夾。 系統及信箱管理原則不適用。這項設計可防止系統在復原程序期間刪除 RDB 中的項目。 系統不會對 RDB 執行線上維護。 系統無法為 RDB 啟用循環記錄。 RDB 只能用於復原信箱資料庫的資料。您不能使用 RDB 來復原公用資料夾的資料。 一次只能將一個 RDB 裝載到信箱伺服器上。使用 RDB 時,不受到每台信箱伺服器 100 個資料庫的限制。 您無法建立 RDB 的信箱資料庫副本。 RDB 可以當作還原作業 (但不能當成備份作業) 的目標來使用。 裝載為 RDB 的已復原資料庫,無論如何都不會繫結到原始信箱。 ** Steps 1 – 15 皆為失敗示範 1. New-MailboxDatabase –Recovery –name “RDB Name” –Server “Target Server” (此方法會...