iT邦幫忙

2019 iT 邦幫忙鐵人賽

DAY 8
0
Everything on Azure

玩轉 Azure 於指尖隨心所欲系列 第 8

應用程式層級備份保護知多少..Azure 快來幫忙

  • 分享至 

  • twitterImage
  •  

前一篇我們針對常見的檔案資料部份進行保護避免...蟲害...不是..是勒索,反正人為天災就是了!
備份檔案資料屬於作業系統層級快照保護,但如果像是持續性交易像SQL這種的類型就會需要借重到DPM備份伺服器的長才了!
Azure重複的動作就不多說...直接進入另外的關鍵,從原本檔案資料夾改選擇SQL...
https://ithelp.ithome.com.tw/upload/images/20181008/200254815kuKwND6W8.png

這時候你就看到跟之前安裝Agent完全不同,這是要你直接下載一整個Azure DPM安裝程式(如果已有System Center DPM則可以略過此)
https://ithelp.ithome.com.tw/upload/images/20181008/20025481bSLI0cCPbQ.png

進入到DPM下載頁面
https://ithelp.ithome.com.tw/upload/images/20181008/20025481tc79ogOdB5.png

全部都給他下載下來...
https://ithelp.ithome.com.tw/upload/images/20181008/200254818z9UuAxakF.png

差不多4到5GB的程式檔案如果下載不快的要久等了...
https://ithelp.ithome.com.tw/upload/images/20181008/20025481uhzF0xid2v.png

好啦!下載好了我就直接把程式Copy到要作為Azure備份伺服器的Windows Server 2016上
https://ithelp.ithome.com.tw/upload/images/20181008/20025481a5oruKy2ml.png

開始點兩下進行安裝啦!
https://ithelp.ithome.com.tw/upload/images/20181008/20025481qwUkw6mF7m.png

預設安裝路徑下一步繼續
https://ithelp.ithome.com.tw/upload/images/20181008/20025481DKrxeKAhdN.png

其實主程式附帶的都是一堆bin檔,開始解壓縮
https://ithelp.ithome.com.tw/upload/images/20181008/200254810Cc28mDEyR.png

解壓縮中
https://ithelp.ithome.com.tw/upload/images/20181008/20025481Hr6es2aQvD.png

咦!怎麼有出現需要找到檔案的位置
https://ithelp.ithome.com.tw/upload/images/20181008/20025481Q5kBqXM36t.png

發現有bin檔找不到
https://ithelp.ithome.com.tw/upload/images/20181008/20025481bgEJaH2GYP.png

再回頭到下載頁面發現原來我少勾選了最後一個bin,被擋住了....
https://ithelp.ithome.com.tw/upload/images/20181008/20025481jVMPdBn2pr.png

立馬下載中
https://ithelp.ithome.com.tw/upload/images/20181008/20025481YOjLUJerxH.png

Copy到剛剛的檔案放置路徑
https://ithelp.ithome.com.tw/upload/images/20181008/20025481bgFDl0O5kt.png

立刻找到此遺失的bin檔後正常繼續解壓縮
https://ithelp.ithome.com.tw/upload/images/20181008/20025481rdOLgcnmpI.png

解壓縮完成可以準備開始正式安裝
https://ithelp.ithome.com.tw/upload/images/20181008/20025481BevZFq6SBO.png

開始安裝備份伺服器,選擇左列第一項
https://ithelp.ithome.com.tw/upload/images/20181008/20025481F6LJvbRj0V.png

安裝複製中
https://ithelp.ithome.com.tw/upload/images/20181008/20025481mEtcsSIN5s.png

安裝下一步繼續
https://ithelp.ithome.com.tw/upload/images/20181008/20025481501V8vSpBu.png

先做環境檢查
https://ithelp.ithome.com.tw/upload/images/20181008/20025481XoXGFUoeMT.png

檢查中確認環境中
https://ithelp.ithome.com.tw/upload/images/20181008/20025481taRUa9YPMc.png

DPM是需要網域環境的...無法例外
https://ithelp.ithome.com.tw/upload/images/20181008/20025481oB3ovyh6d7.png

DPM立馬加入網域!
https://ithelp.ithome.com.tw/upload/images/20181008/20025481wmHBVTUsvV.png

再重新安裝一次,剛剛解壓縮後的實際程式位置如下
https://ithelp.ithome.com.tw/upload/images/20181008/20025481X8Pqk9kmCF.png

痾!...還要提示需要重新開機...好吧!就重開嘍
https://ithelp.ithome.com.tw/upload/images/20181008/20025481EgCn0xcaJz.png

重開好了我們就重剛剛被打槍的地方繼續吧!
https://ithelp.ithome.com.tw/upload/images/20181008/20025481dkfrH58tey.png

沒問題了,繼續決定預設SQL安裝路徑
https://ithelp.ithome.com.tw/upload/images/20181008/20025481Mx1bRac8xu.png

設定一下報表密碼
https://ithelp.ithome.com.tw/upload/images/20181008/20025481l1dFrZuGgG.png

還是建議更新為上策
https://ithelp.ithome.com.tw/upload/images/20181008/200254816w9HwYd9bE.png

準備開始安裝
https://ithelp.ithome.com.tw/upload/images/20181008/20025481VyH1IodJKH.png

沒有走Proxy,直接走Internet下一步繼續
https://ithelp.ithome.com.tw/upload/images/20181008/200254817TizBYgtS5.png

偵測到可用安裝必要服務
https://ithelp.ithome.com.tw/upload/images/20181008/20025481XJLGNC4AIQ.png

匯入昨天我們做備份的Key...因為還沒超過48小時..沿用即可
https://ithelp.ithome.com.tw/upload/images/20181008/20025481ubdhJv9z0i.png

設定系統復原的密碼..直接系統產生就好(好好保管)
https://ithelp.ithome.com.tw/upload/images/20181008/20025481YpUw8UHMfG.png

開始進行安裝
https://ithelp.ithome.com.tw/upload/images/20181008/20025481ogeeqQbca5.png

安裝中
https://ithelp.ithome.com.tw/upload/images/20181008/20025481vBawlaOTBS.png

自動設定連線至DPM
https://ithelp.ithome.com.tw/upload/images/20181008/20025481x7XVQZyeM4.png

安裝完成啦
https://ithelp.ithome.com.tw/upload/images/20181008/200254811I00MUTurb.png

前置作業需要在此DPM設定儲存空間,需要做一個Storage Pool裡面建立的磁碟區,而非磁碟管理的第二顆磁碟區
這設置就不在此文中重點,動手摸一摸就會知道了
https://ithelp.ithome.com.tw/upload/images/20181008/20025481TDImnKGwtL.png

確定剛剛設定的Disk空間
https://ithelp.ithome.com.tw/upload/images/20181008/20025481Rftbgv3QxW.png

從管理介面選擇到新增磁碟空間
https://ithelp.ithome.com.tw/upload/images/20181008/20025481rer74Ht4Qq.png

新增磁區就可以看到剛剛建立的199GB的E槽磁區
https://ithelp.ithome.com.tw/upload/images/20181008/20025481BZyD4FgDcK.png

需要透過DPM格式化
https://ithelp.ithome.com.tw/upload/images/20181008/20025481f3BrqAqEln.png

格式化後新增此磁碟空間
https://ithelp.ithome.com.tw/upload/images/20181008/20025481WsZX0dZlkk.png

有了!DPM已經有199GB的儲存可以作為後續備份存放之用
https://ithelp.ithome.com.tw/upload/images/20181008/20025481WSubdmy7ks.png

可以開始做主機的保護,就拿自家的SQL來做標的,選擇Windows
https://ithelp.ithome.com.tw/upload/images/20181008/20025481NvoB8aoQ41.png

選擇自動安裝代理程式來做部署
https://ithelp.ithome.com.tw/upload/images/20181008/20025481wIlXvYzsv2.png

透過網域加入SQL,如果沒有掃到則手動設置加入
https://ithelp.ithome.com.tw/upload/images/20181008/20025481c1gdidWLKF.png

設定網域管理帳密
https://ithelp.ithome.com.tw/upload/images/20181008/20025481Us4TriAXQF.png

選擇預設安裝後如需要自動重開
https://ithelp.ithome.com.tw/upload/images/20181008/20025481vooGJkn9aW.png

確定安裝Agent到此台SQL
https://ithelp.ithome.com.tw/upload/images/20181008/20025481bOyaPlfNgz.png

Agent已安裝成功
https://ithelp.ithome.com.tw/upload/images/20181008/20025481pUUE9yeP9j.png

從管理受保護伺服器已經看到此台已納入
https://ithelp.ithome.com.tw/upload/images/20181008/20025481xzVnMVFKND.png

開始重頭戲設定保護啦
https://ithelp.ithome.com.tw/upload/images/20181008/20025481AEmn5aTYkK.png

選擇伺服器..因為我是Windows Server嘛!
https://ithelp.ithome.com.tw/upload/images/20181008/20025481HNJxTBz8Yf.png

選擇指定SQL的WebDB資料庫做備份
https://ithelp.ithome.com.tw/upload/images/20181008/20025481NincGfB9Qb.png

設定保護群組名稱並依照預設做長期保留(視個人環境需求而定)
https://ithelp.ithome.com.tw/upload/images/20181008/20025481xDYvWESl1X.png

設定保留時間,我是預設值下一步繼續
https://ithelp.ithome.com.tw/upload/images/20181008/20025481qGocKGgqhY.png

設置的資料量大小與存放位置可用空間標的
https://ithelp.ithome.com.tw/upload/images/20181008/20025481UHgGHsBHQS.png

立即透過網路執行
https://ithelp.ithome.com.tw/upload/images/20181008/20025481iva6MaOKdI.png

資料不一致的檢查時間設置
https://ithelp.ithome.com.tw/upload/images/20181008/200254815pZAIh032w.png

確認受保護的資料來源WebDB
https://ithelp.ithome.com.tw/upload/images/20181008/20025481cTIo2sOUjy.png

設定排程備份時間,最多一天兩次
https://ithelp.ithome.com.tw/upload/images/20181008/20025481sYFbz7RxiX.png

設置長期保留的時間天數
https://ithelp.ithome.com.tw/upload/images/20181008/20025481bHEhx539rn.png

自動透過網路備份
https://ithelp.ithome.com.tw/upload/images/20181008/20025481sM3bIfwOzD.png

設置無誤後建立群組
https://ithelp.ithome.com.tw/upload/images/20181008/20025481ATf0ta9gno.png

建立進行中
https://ithelp.ithome.com.tw/upload/images/20181008/200254819tU3bePoxm.png

建立成功完成
https://ithelp.ithome.com.tw/upload/images/20181008/20025481xudf7TOJaN.png

不過小插曲....保護完成後的SQL竟無法設定保護
https://ithelp.ithome.com.tw/upload/images/20181008/20025481wez9HMvDwA.png

啟動執行一致性檢查
https://ithelp.ithome.com.tw/upload/images/20181008/200254810l01uF8mqP.png

出現錯誤訊息....!看起來是權限問題...建議動作有提示https://ithelp.ithome.com.tw/upload/images/20181008/20025481WguD5dc5x1.png

不過我仍以為網域管理者為加入至SQL sysadmin就可以解決,不過當然加入後狀況一樣/images/emoticon/emoticon04.gif
https://ithelp.ithome.com.tw/upload/images/20181008/20025481k6vZElD4aU.png

還是依照提示乖乖建立
https://ithelp.ithome.com.tw/upload/images/20181008/20025481Lj59TqyZ2w.png

再重新透過失敗的工作Job執行一次
https://ithelp.ithome.com.tw/upload/images/20181008/20025481ZCjFLPeX41.png

可以了!XD
https://ithelp.ithome.com.tw/upload/images/20181008/20025481EjfR4kZYEA.png

可以開始建立復原點,先從磁碟保護快速建立開始
https://ithelp.ithome.com.tw/upload/images/20181008/20025481idcO5QCFgV.png

出現一時的不一致狀態...等他一下
https://ithelp.ithome.com.tw/upload/images/20181008/20025481dxovb0wr7b.png

資料復原點已經顯示正確了
https://ithelp.ithome.com.tw/upload/images/20181008/20025481Q8Z25D9hLT.png

建立進行中
https://ithelp.ithome.com.tw/upload/images/20181008/20025481AHn7F5sCcL.png

資料同步成功了
https://ithelp.ithome.com.tw/upload/images/20181008/20025481OOOSo5vdJM.png

線上保護丟到Azure雲端上的也來一份
https://ithelp.ithome.com.tw/upload/images/20181008/20025481UxrYGgPXAM.png

正在傳送中,這就比較久一點了...吃網路嘛!等一會嘍
https://ithelp.ithome.com.tw/upload/images/20181008/20025481KuSrDAEZAt.png

來驗證一下把我目前這DB的資料表刪掉
https://ithelp.ithome.com.tw/upload/images/20181008/20025481uZXcxm5Lam.png

刪除啦!我的資料表沒了
https://ithelp.ithome.com.tw/upload/images/20181008/20025481L7ST1WDMru.png

透過Azure DPM的復原功能找到WebDB並選擇你要還原的時間點
https://ithelp.ithome.com.tw/upload/images/20181008/20025481Zy12L0K0Jw.png

選定好了就下一步繼續
https://ithelp.ithome.com.tw/upload/images/20181008/2002548104K1iHdrMQ.png

確定從復原點做還原,下一步繼續
https://ithelp.ithome.com.tw/upload/images/20181008/20025481jDeJX3JPXc.png

網路節流頻寬設置如果不需要則下一步繼續
https://ithelp.ithome.com.tw/upload/images/20181008/200254812Dv7dPlleM.png

復原進行中
https://ithelp.ithome.com.tw/upload/images/20181008/20025481zBUXNoOm7J.png

復原完成工作紀錄已成功
https://ithelp.ithome.com.tw/upload/images/20181008/2002548117aj4O3B4p.png

從自己的SQL上看到WebDB的資料表已經回來啦!....我忘了截圖../images/emoticon/emoticon09.gif

好啦!其實還有很多包含Sharepoint,VMware,Exchange等...都是透過DPM來做保護做中介的,所以如果真的正式環境嚴格來看這台可是需要很Powerful的呦!

小弟今天....就先告退...明天再見../images/emoticon/emoticon39.gif


上一篇
家中的資料勒索可不得了,快備份吧
下一篇
屎用Azure備份保護標的一多怎麼只有總空間用量..個別呢?
系列文
玩轉 Azure 於指尖隨心所欲32
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言