SQL Server資料庫log shipping 災備(Part2 )

來源:互聯網
上載者:User

標籤:資料庫   SQL Server   

3.配置步驟:

主伺服器(A機)設定

(1) 啟用Log Shipping Configuration

按右鍵需要配置日誌傳輸的資料庫—>Tasks—> Ship Transaction Logs...—>Enable this as a primary database in a log shipping configuration打鉤

 

(2) 點擊Backup Setting

  • 建立backup的檔案夾,Network path和local path

  • 刪除多長時間之前的記錄檔

  • 警告,多長時間沒有記錄備份發出警告

  • Backup Job Schedule,設定詳細的備份時間和周日

  • 壓縮選擇,一般選擇Compress Backup,可以減少網路的IO

 

次要伺服器(B機)設定

(1) 在Secondary databases, 點擊Add

 

(2) 串連到次要伺服器

有三個選項卡:

  • Initialize Secondary Database,用主要資料庫的full backup初始化次要伺服器。

  • Copy Files,在主伺服器記錄檔備份的位置。

  • Restore Transaction Log,恢複交易記錄選項。

註:可以添加多個次要伺服器。

 

(3) 警告伺服器設定(可選)

通過以上步驟基本完成了logshipping的配置。

SQL Server資料庫log shipping 災備(Part2 )

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.