fbpx
维基百科

磁碟區陰影複製服務

磁碟區陰影複製服務(英語:Volume Shadow Copy Service)是微軟Windows的一项元件服務,從Windows Server 2003開始支援。

磁碟區陰影複製服務是一項定時為磁碟區作複製的服務。服務會在磁碟區新增一個名為「陰影複製」(Shadow Copy)的選項。這服務可為離線用戶提供離線檔案服務。

欲使用這項技術,檔案系統必須為NTFS,才可創建和儲存磁碟區陰影區複製。磁碟區陰影區複製可以由任何使用此技術的Windows原建在本地或外部磁碟(卸除式磁碟或網路磁碟)上創建。舉例而言,排程的Windows備份系統還原點時會用到此技術。

總覽 编辑

VSS在層級上執行。

快照有兩個主要目的:它確保備份可持續進行,即確保當備份進行時檔案內容無法改變;另外,它也避免檔案被佔用的問題。藉由建立一份磁碟區的唯讀備份,備份軟體得以存取任何檔案而不會與也正在寫入這些相同檔案的其他軟體衝突。

檔案複製(備份)的過程可由檔案系統或特定硬體來處理,若是後者,VSS硬體供應商將提取(abstract)其功能給作業系統。應用程式亦可提供對VSS的支援。

支援VSS的Windows軟體和服務包括Windows備份與還原Hyper-V、Virtual Server、Active DirectoryMicrosoft SQL ServerExchange ServerSharePoint[來源請求]

最終的結果類似於檔案版本系統英语versioning file system。不同的是,使用者只能對整個磁碟區做快照,而不能只對個別檔案。其副作用是,雖然檔案擁有者可在檔案版本系統中建立該檔案的新版本,但只有系統管理員或備份執行者可以建立新快照(或控制何時建立新快照),因為這需要控制整個磁碟區而非個別檔案。此外許多檔案版本系統(例如VMS )在每一次檔案發生變更後即立刻儲存一份該檔案的備份:而像Windows一樣利用快照方式的系統只會定期記下硬碟的狀態。

歷史 编辑

Windows XP 和 Server 2003

磁碟區快照服務第一次新增到Windows XP中;此版本的VSS被NTBackup使用,然而它只能建立非永久的快照(一種暫時性的快照,通常用於建立檔案備份,或複製正在被其他應用程式佔用中的檔案。後者較為常見。)NT Backup用其專利的BKF格式永久儲存磁碟區陰影區複製。

建立永久性快照的功能自Windows Server 2003起新增到Windows中,它可以允許最多512個對同磁碟區的快照同時存在。這些永久性快照即使重新開機也不會消失,除非被系統刪除。在Windows Server 2003中VSS因此用來建立定期增量(incremental)快照,記下檔案隨時間的變化。透過網路分享,最多可有64個快照儲存在伺服器端並可由客戶端存取。此功能叫做Shadow copies for Shared Folders,是主從式架構的設計之一[1]。Shadow copies for Shared Folders客戶端軟體之安裝基本需求為Windows 2000、Windows XP RTM和Windows XP SP1[2]。此Windows 32位元版客戶端軟體可從伺服器端或者微軟網頁下載。自Windows XP SP2起,此客戶端軟體內建於Windows中。Windows XP[3]以上的系統內建一命令提示列工具叫做vssadmin,可以列出、建立或刪除磁碟區陰影區複製並列出已安裝的陰影區複製提供者(provider)[4]

Windows Vista、 7 和Server 2008

許多微軟Windows的元件已更新以應用磁碟區陰影區複製。Windows VistaWindows Server 2008Windows 7Windows Server 2008 R2中的備份與還原中心利用磁碟區陰影區複製進行以檔案和磁區為基礎(file-based and sector-by-sector) 的備份。「系統還原」功能也使用了VSS建立定期的系統和使用者資料備份,儲存在同磁碟區(和Windows Sever 中的Shadow Copies for Shared Folders類似,但使用者可透過系統還原來存取備份)

系統還原可將系統回復到前一個陰影區複製(叫做還原點)的狀態[5]。在Windows Vista以前,系統還原的做法是監測特定檔案格式的變化,並在它們被複寫前備份一份[6][7][8]。此外,Windows檔案總管中叫做「先前的版本」的功能可讓使用者從之前的還原點中取回任一檔案或資料夾,由此取得該檔案先前的版本或還原誤刪檔案。最後,Windows Server 2008引入了diskshadow工具,可以以20種不同的命令操作VSS的功能[9]

陰影區複製每日自動產生一次,或手動由備份軟體、安裝檔觸發建立還原點[10][11]。「先前的版本」可在Windows Vista 商用版、企業版和旗鑑版[12] 以及 Windows 7任何版本中使用。 Vista家庭版缺少此功能,但磁碟快照服務依然包含於其中,並正在執行。

使用第三方軟體亦可還原某檔案先前的版本[13]。有些此類軟體更可讓使用者自訂定時建立快照的間隔時間、設定陰影區複製佔用磁碟空間的上限、以及不同時間點的快照比對其檔案或資料夾的變化[14]。Windows 7亦原生支援以圖形化介面設置陰影區佔用儲存空間的上限。

Windows 8 和Server 2012

Windows 8中,永久性的陰影區複製已不存在。因此藉由「內容」視窗中「先前的版本」瀏覽、搜尋和/或復原檔案舊版本的功能已經移除。不過此功能在 Windows Server 2012中仍保留著[15]

Samba Server

Linux上的Samba伺服器可在LVM儲存裝置上提供陰影區複製的服務[16]

相容性 编辑

雖然不同版本的NTFS檔案系統對其新版和舊版有一定的相容性,但當舊版的Windows(Windows Vista以前)掛載存有永久性陰影區複製的NTFS磁碟區時,仍存在著一些問題,這將影響雙重作業系統以及外接硬碟。特定的說,當舊版的作業系統掛載新的NTFS磁碟區,該磁碟區的陰影區複製將被刪除,因為較舊的作業系統無法辨識較新版永久性陰影區複製的格式[17]

參見 编辑

參考资料 编辑

  • . TechNet. Microsoft. 2003年3月28日 [2018年1月13日]. (原始内容存档于2017年8月26日). 
  • . TechNet. Microsoft. [2006年5月10日]. (原始内容存档于2006-01-15). [失效連結]
  1. ^ Shadow Copy Client Download. TechNet. Microsoft. [21 October 2014]. (原始内容于2016-01-31). 
  2. ^ Oltean, Adi. Tips for deploying Shadow copies(原文如此) for Shared Folders. Antimail. Microsoft. 17 December 2004 [21 April 2009]. (原始内容于2009-04-23). 
  3. ^ Volume Shadow Copy Service. MSDN. Microsoft. [31 May 2013]. (原始内容于2015-10-06). 
  4. ^ Vssadmin. Windows Server 2008 and Windows Server 2008 R2 documentations. TechNet Library. Microsoft. Windows Server Commands, References, and Tools. 28 September 2007 [27 March 2012]. (原始内容于2015-05-07). 
  5. ^ Compare:Information about SPP folder in Windows vista. Microsoft Community. Microsoft. 2010-08-20 [2015-07-22]. (原始内容于2015-07-23). SPP stand for Shared Protection Point and is used by windows to store information on restore point. 
  6. ^ Russinovich, Mark E.; Solomon, David A. Microsoft Windows Internals: Microsoft Windows Server 2003, Windows XP, and Windows 2000 4. Redmond, WA: Microsoft Press. 2005: 706–711. ISBN 0-7356-1917-4. 
  7. ^ . Windows Vista portal. Microsoft. [11 January 2014]. (原始内容存档于2007年5月10日). 
  8. ^ Fok, Christine. A Guide to Windows Vista Backup Technologies. TechNet Magazine (Microsoft). September 2007 [11 January 2014]. (原始内容于2015-10-01). 
  9. ^ Diskshadow. Windows Server 2008 and Windows Server 2008 R2 documentations. TechNet Library. Microsoft Corporation. Windows Server Commands, References, and Tools. 28 September 2007 [27 March 2012]. (原始内容于2015-07-03). 
  10. ^ Selected Scenarios for Maintaining Data Integrity with Windows Vista. TechNet. Microsoft Corporation. [2015-09-06]. (原始内容于2017-08-26). 
  11. ^ A Guide to Windows Vista Backup Technologies. Microsoft. [2015-09-06]. (原始内容于2015-10-01). 
  12. ^ Volume Shadow Copy and "Previous Versions" feature in Windows Vista. Microsoft Corporation. [2015-09-06]. (原始内容于2008-04-29). 
  13. ^ ShadowExplorer allows restoring lost or altered files. [2015-09-06]. (原始内容于2015-09-05). 
  14. ^ TimeTraveler adds a timeline to Windows Explorer allowing the user to open, restore or compare files or directories from points-in-time. [2015-09-06]. (原始内容于2015-10-11). 
  15. ^ Previous versions UI removed for local volumes (Windows). [17 November 2012]. (原始内容于2015-10-04). 
  16. ^ Samba HOWTO Collection, Part III. Advanced Configuration. [2 October 2012]. (原始内容于2015-09-13). 
  17. ^ . File Cabinet Blog. Microsoft. 14 July 2006 [21 March 2007]. (原始内容存档于2006-07-18). 

外部連結 编辑

  • JosephPhoto 的 網路日誌我的網誌 - Windows Server 2003:陰影複製 Volume Shadow Copy Service (VSS) 管理服務 (页面存档备份,存于互联网档案馆

相关条目 编辑

延伸閱讀 编辑

  • Russinovich, Mark E.; Solomon, David A.; Ionescu, Alex. Storage Management. Windows Internals 5th. Microsoft Press. 2009: 688–698. ISBN 978-0-7356-2530-3. 
  • Selected Scenarios for Maintaining Data Integrity with Windows Vista. Microsoft TechNet. Microsoft Corporation. [4 January 2011]. (原始内容于2017-08-26). 
  • Russinovich, Mark; Solomon, David. Windows XP: Kernel Improvements Create a More Robust, Powerful, and Scalable OS. TechNet Magazine. Microsoft. December 2001 [2 May 2013]. (原始内容于2015-05-07). 
  • Oltean, Adi. A bit of black magic: How to assign drive letters to VSS shadow copies... on Windows XP!. Antimail. Microsoft Corporation. 19 September 2006 [4 January 2011]. (原始内容于2010-01-25). 
  • Oltean, Adi. Creating shadow copies from the commandline. MSDN Blogs. Microsoft Corporation. 14 December 2004 [4 January 2011]. (原始内容于2010-03-29). 
  • Volume Shadow Copy Service (VSS) Express Writers. Microsoft Corporation. [2015-09-06]. (原始内容于2011-08-27). 


磁碟區陰影複製服務, 英語, volume, shadow, copy, service, 是微軟windows的一项元件服務, 從windows, server, 2003開始支援, 是一項定時為磁碟區作複製的服務, 服務會在磁碟區新增一個名為, 陰影複製, shadow, copy, 的選項, 這服務可為離線用戶提供離線檔案服務, 欲使用這項技術, 檔案系統必須為ntfs, 才可創建和儲存磁碟區陰影區複製, 磁碟區陰影區複製可以由任何使用此技術的windows原建在本地或外部磁碟, 卸除式磁碟或網路磁碟, 上創. 磁碟區陰影複製服務 英語 Volume Shadow Copy Service 是微軟Windows的一项元件服務 從Windows Server 2003開始支援 磁碟區陰影複製服務是一項定時為磁碟區作複製的服務 服務會在磁碟區新增一個名為 陰影複製 Shadow Copy 的選項 這服務可為離線用戶提供離線檔案服務 欲使用這項技術 檔案系統必須為NTFS 才可創建和儲存磁碟區陰影區複製 磁碟區陰影區複製可以由任何使用此技術的Windows原建在本地或外部磁碟 卸除式磁碟或網路磁碟 上創建 舉例而言 排程的Windows備份或系統還原點時會用到此技術 目录 1 總覽 2 歷史 3 相容性 4 參見 5 參考资料 6 外部連結 7 相关条目 8 延伸閱讀總覽 编辑VSS在塊層級上執行 快照有兩個主要目的 它確保備份可持續進行 即確保當備份進行時檔案內容無法改變 另外 它也避免檔案被佔用的問題 藉由建立一份磁碟區的唯讀備份 備份軟體得以存取任何檔案而不會與也正在寫入這些相同檔案的其他軟體衝突 檔案複製 備份 的過程可由檔案系統或特定硬體來處理 若是後者 VSS硬體供應商將提取 abstract 其功能給作業系統 應用程式亦可提供對VSS的支援 支援VSS的Windows軟體和服務包括Windows備份與還原 Hyper V Virtual Server Active Directory Microsoft SQL Server Exchange Server SharePoint 來源請求 最終的結果類似於檔案版本系統 英语 versioning file system 不同的是 使用者只能對整個磁碟區做快照 而不能只對個別檔案 其副作用是 雖然檔案擁有者可在檔案版本系統中建立該檔案的新版本 但只有系統管理員或備份執行者可以建立新快照 或控制何時建立新快照 因為這需要控制整個磁碟區而非個別檔案 此外許多檔案版本系統 例如VMS 在每一次檔案發生變更後即立刻儲存一份該檔案的備份 而像Windows一樣利用快照方式的系統只會定期記下硬碟的狀態 歷史 编辑Windows XP 和 Server 2003磁碟區快照服務第一次新增到Windows XP中 此版本的VSS被NTBackup使用 然而它只能建立非永久的快照 一種暫時性的快照 通常用於建立檔案備份 或複製正在被其他應用程式佔用中的檔案 後者較為常見 NT Backup用其專利的BKF格式永久儲存磁碟區陰影區複製 建立永久性快照的功能自Windows Server 2003起新增到Windows中 它可以允許最多512個對同磁碟區的快照同時存在 這些永久性快照即使重新開機也不會消失 除非被系統刪除 在Windows Server 2003中VSS因此用來建立定期增量 incremental 快照 記下檔案隨時間的變化 透過網路分享 最多可有64個快照儲存在伺服器端並可由客戶端存取 此功能叫做Shadow copies for Shared Folders 是主從式架構的設計之一 1 Shadow copies for Shared Folders客戶端軟體之安裝基本需求為Windows 2000 Windows XP RTM和Windows XP SP1 2 此Windows 32位元版客戶端軟體可從伺服器端或者微軟網頁下載 自Windows XP SP2起 此客戶端軟體內建於Windows中 Windows XP 3 以上的系統內建一命令提示列工具叫做vssadmin 可以列出 建立或刪除磁碟區陰影區複製並列出已安裝的陰影區複製提供者 provider 4 Windows Vista 7 和Server 2008許多微軟Windows的元件已更新以應用磁碟區陰影區複製 Windows Vista Windows Server 2008 Windows 7和Windows Server 2008 R2中的備份與還原中心利用磁碟區陰影區複製進行以檔案和磁區為基礎 file based and sector by sector 的備份 系統還原 功能也使用了VSS建立定期的系統和使用者資料備份 儲存在同磁碟區 和Windows Sever 中的Shadow Copies for Shared Folders類似 但使用者可透過系統還原來存取備份 系統還原可將系統回復到前一個陰影區複製 叫做還原點 的狀態 5 在Windows Vista以前 系統還原的做法是監測特定檔案格式的變化 並在它們被複寫前備份一份 6 7 8 此外 Windows檔案總管中叫做 先前的版本 的功能可讓使用者從之前的還原點中取回任一檔案或資料夾 由此取得該檔案先前的版本或還原誤刪檔案 最後 Windows Server 2008引入了diskshadow工具 可以以20種不同的命令操作VSS的功能 9 陰影區複製每日自動產生一次 或手動由備份軟體 安裝檔觸發建立還原點 10 11 先前的版本 可在Windows Vista 商用版 企業版和旗鑑版 12 以及 Windows 7任何版本中使用 Vista家庭版缺少此功能 但磁碟快照服務依然包含於其中 並正在執行 使用第三方軟體亦可還原某檔案先前的版本 13 有些此類軟體更可讓使用者自訂定時建立快照的間隔時間 設定陰影區複製佔用磁碟空間的上限 以及不同時間點的快照比對其檔案或資料夾的變化 14 Windows 7亦原生支援以圖形化介面設置陰影區佔用儲存空間的上限 Windows 8 和Server 2012在Windows 8中 永久性的陰影區複製已不存在 因此藉由 內容 視窗中 先前的版本 瀏覽 搜尋和 或復原檔案舊版本的功能已經移除 不過此功能在 Windows Server 2012中仍保留著 15 Samba ServerLinux上的Samba伺服器可在LVM儲存裝置上提供陰影區複製的服務 16 相容性 编辑雖然不同版本的NTFS檔案系統對其新版和舊版有一定的相容性 但當舊版的Windows Windows Vista以前 掛載存有永久性陰影區複製的NTFS磁碟區時 仍存在著一些問題 這將影響雙重作業系統以及外接硬碟 特定的說 當舊版的作業系統掛載新的NTFS磁碟區 該磁碟區的陰影區複製將被刪除 因為較舊的作業系統無法辨識較新版永久性陰影區複製的格式 17 參見 编辑快照 電腦儲存 寫入時複製參考资料 编辑How Volume Shadow Copy Service Works TechNet Microsoft 2003年3月28日 2018年1月13日 原始内容存档于2017年8月26日 Selected Scenarios for Maintaining Data Integrity with Windows Vista TechNet Microsoft 2006年5月10日 原始内容存档于2006 01 15 失效連結 Shadow Copy Client Download TechNet Microsoft 21 October 2014 原始内容存档于2016 01 31 Oltean Adi Tips for deploying Shadow copies 原文如此 for Shared Folders Antimail Microsoft 17 December 2004 21 April 2009 原始内容存档于2009 04 23 Volume Shadow Copy Service MSDN Microsoft 31 May 2013 原始内容存档于2015 10 06 Vssadmin Windows Server 2008 and Windows Server 2008 R2 documentations TechNet Library Microsoft Windows Server Commands References and Tools 28 September 2007 27 March 2012 原始内容存档于2015 05 07 Compare Information about SPP folder in Windows vista Microsoft Community Microsoft 2010 08 20 2015 07 22 原始内容存档于2015 07 23 SPP stand for Shared Protection Point and is used by windows to store information on restore point Russinovich Mark E Solomon David A Microsoft Windows Internals Microsoft Windows Server 2003 Windows XP and Windows 2000 4 Redmond WA Microsoft Press 2005 706 711 ISBN 0 7356 1917 4 Windows Backup Windows Vista portal Microsoft 11 January 2014 原始内容存档于2007年5月10日 Fok Christine A Guide to Windows Vista Backup Technologies TechNet Magazine Microsoft September 2007 11 January 2014 原始内容存档于2015 10 01 Diskshadow Windows Server 2008 and Windows Server 2008 R2 documentations TechNet Library Microsoft Corporation Windows Server Commands References and Tools 28 September 2007 27 March 2012 原始内容存档于2015 07 03 Selected Scenarios for Maintaining Data Integrity with Windows Vista TechNet Microsoft Corporation 2015 09 06 原始内容存档于2017 08 26 A Guide to Windows Vista Backup Technologies Microsoft 2015 09 06 原始内容存档于2015 10 01 Volume Shadow Copy and Previous Versions feature in Windows Vista Microsoft Corporation 2015 09 06 原始内容存档于2008 04 29 ShadowExplorer allows restoring lost or altered files 2015 09 06 原始内容存档于2015 09 05 TimeTraveler adds a timeline to Windows Explorer allowing the user to open restore or compare files or directories from points in time 2015 09 06 原始内容存档于2015 10 11 Previous versions UI removed for local volumes Windows 17 November 2012 原始内容存档于2015 10 04 Samba HOWTO Collection Part III Advanced Configuration 2 October 2012 原始内容存档于2015 09 13 How restore points and other recovery features in Windows Vista are affected when you dual boot with Windows XP File Cabinet Blog Microsoft 14 July 2006 21 March 2007 原始内容存档于2006 07 18 外部連結 编辑https web archive org web 20070929060125 http www msservermag com tw win2003 article M050303601 pdf JosephPhoto 的 網路日誌我的網誌 Windows Server 2003 陰影複製 Volume Shadow Copy Service VSS 管理服務 页面存档备份 存于互联网档案馆 相关条目 编辑Time Machine Mac OS X的备份服务 延伸閱讀 编辑Russinovich Mark E Solomon David A Ionescu Alex Storage Management Windows Internals 5th Microsoft Press 2009 688 698 ISBN 978 0 7356 2530 3 Selected Scenarios for Maintaining Data Integrity with Windows Vista Microsoft TechNet Microsoft Corporation 4 January 2011 原始内容存档于2017 08 26 Russinovich Mark Solomon David Windows XP Kernel Improvements Create a More Robust Powerful and Scalable OS TechNet Magazine Microsoft December 2001 2 May 2013 原始内容存档于2015 05 07 Oltean Adi A bit of black magic How to assign drive letters to VSS shadow copies on Windows XP Antimail Microsoft Corporation 19 September 2006 4 January 2011 原始内容存档于2010 01 25 Oltean Adi Creating shadow copies from the commandline MSDN Blogs Microsoft Corporation 14 December 2004 4 January 2011 原始内容存档于2010 03 29 Volume Shadow Copy Service VSS Express Writers Microsoft Corporation 2015 09 06 原始内容存档于2011 08 27 取自 https zh wikipedia org w index php title 磁碟區陰影複製服務 amp oldid 67158864, 维基百科,wiki,书籍,书籍,图书馆,

文章

,阅读,下载,免费,免费下载,mp3,视频,mp4,3gp, jpg,jpeg,gif,png,图片,音乐,歌曲,电影,书籍,游戏,游戏。