查看完整版本: [轉貼]VMware esxi 備份ghettoVCB.sh基本設定說明

chun 2012-6-19 16:18

[轉貼]VMware esxi 備份ghettoVCB.sh基本設定說明

<a href="http://blog.faq-book.com/?p=3980">http://blog.faq-book.com/?p=3980</a>
<div><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-size: 14px; "><b><span style="font-family: 細明體; ">一、&nbsp;<span lang="EN-US">ghettoVCB.sh&nbsp;</span>介紹</span></b></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">此腳本主要是用來做<span lang="EN-US">VM ESXI</span>備份使用。目前所能使用的版本有,<span lang="EN-US">ESX(i)3.5/4.x/5.x</span>,使用的方法類似<span lang="EN-US">VMware</span></span>的<span lang="EN-US">VCB</span>的工具執行備份。<span lang="EN-US">ghettoVCB.sh</span>該腳本是執行虛擬機的快照,然後進行備份,當備份完成後會刪除快照。<span style="font-family: 細明體; ">而此腳本最大的特色為可在虛擬機在線時備份,而不用停機備份。</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">詳細內容可參考&nbsp;<span lang="EN-US"><a href="http://communities.vmware.com/docs/DOC-8760" style="outline: none; border: none; color: rgb(63, 138, 216); text-decoration: none; ">VMware<span lang="EN-US"><span lang="EN-US">官網</span></span></a><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-size: 14px; "><b><span style="font-family: 細明體; ">二、<span lang="EN-US">&nbsp;ghettoVCB.sh</span>安裝設定說明</span></b></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); ">&nbsp;</p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><b><span lang="EN-US" style="font-family: 細明體; ">1.&nbsp;</span></b><b><span style="font-family: 細明體; ">前置作業<span lang="EN-US">(</span>上傳檔案和開啟<span lang="EN-US">SSH)</span></span></b></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">1.1&nbsp;</span><span style="font-family: 細明體; ">上傳檔案</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US">1.1.1&nbsp;</span><span style="font-family: 細明體; ">下載<span lang="EN-US"><a href="https://github.com/lamw/ghettoVCB/downloads" style="outline: none; border: none; color: rgb(63, 138, 216); text-decoration: none; ">ghettoVCB.sh</a>&nbsp;</span>會有兩種下載方式。請依各人需要下載<span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">在這邊下載<span lang="EN-US">tar.gz</span>為範例<span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><font face="細明體"><a href="http://blog.faq-book.com/wp-content/uploads/image/VMware/VMware%20ESXi%20ghettoVCB.sh/1.jpg" style="outline: none; border: none; color: rgb(63, 138, 216); text-decoration: none; "><img alt="" height="299" src="http://blog.faq-book.com/wp-content/uploads/image/VMware/VMware%20ESXi%20ghettoVCB.sh/1.jpg" width="517" style="border: 1px solid rgb(204, 204, 204); padding: 6px; "></a><br></font></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US">1.1.2&nbsp;</span><span style="font-family: 細明體; ">上傳<span lang="EN-US">lamw-ghettoVCB-518cef7.tar<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">把剛剛下載好的<span lang="EN-US">lamw-ghettoVCB-518cef7.tar</span>上傳到<span lang="EN-US">esxi</span>。<span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">上傳的方式有<span lang="EN-US">WinSCP</span>或是使用<span lang="EN-US">VMware vSphere Client</span>上傳等方式<span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">在這邊用<span lang="EN-US">VMware vSphere Client</span>上傳<span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US">[Configuration]</span><span style="font-family: 新細明體, serif; ">→</span><span lang="EN-US" style="font-family: 細明體; ">[Storage]</span><span style="font-family: 新細明體, serif; ">→</span><span lang="EN-US" style="font-family: 細明體; ">[datastore1]</span>→<span lang="EN-US" style="font-family: 細明體; ">[Browse Datastore]<o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><font face="細明體"><a href="http://blog.faq-book.com/wp-content/uploads/image/VMware/VMware%20ESXi%20ghettoVCB.sh/2.jpg" style="outline: none; border: none; color: rgb(63, 138, 216); text-decoration: none; "><img alt="" height="363" src="http://blog.faq-book.com/wp-content/uploads/image/VMware/VMware%20ESXi%20ghettoVCB.sh/2.jpg" width="650" style="border: 1px solid rgb(204, 204, 204); padding: 6px; "></a><br></font></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span id="more-3980"></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US">1.1.3&nbsp;</span><span style="font-family: 細明體; ">先選擇檔案要存放的路徑,然後點<a href="http://blog.faq-book.com/wp-content/uploads/image/VMware/VMware%20ESXi%20ghettoVCB.sh/4.jpg" style="outline: none; border: none; color: rgb(63, 138, 216); text-decoration: none; "><img alt="" height="32" src="http://blog.faq-book.com/wp-content/uploads/image/VMware/VMware%20ESXi%20ghettoVCB.sh/4.jpg" width="38" style="border: 1px solid rgb(204, 204, 204); padding: 6px; "></a>,選<span lang="EN-US">Upload File<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><font face="細明體"><a href="http://blog.faq-book.com/wp-content/uploads/image/VMware/VMware%20ESXi%20ghettoVCB.sh/3.jpg" style="outline: none; border: none; color: rgb(63, 138, 216); text-decoration: none; "><img alt="" height="489" src="http://blog.faq-book.com/wp-content/uploads/image/VMware/VMware%20ESXi%20ghettoVCB.sh/3.jpg" width="650" style="border: 1px solid rgb(204, 204, 204); padding: 6px; "></a><br></font></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">當檔案上傳完成,就會看到多一個上傳好的<span lang="EN-US">lamw-ghettoVCB-518cef7.tar<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><font face="細明體"><a href="http://blog.faq-book.com/wp-content/uploads/image/VMware/VMware%20ESXi%20ghettoVCB.sh/5.jpg" style="outline: none; border: none; color: rgb(63, 138, 216); text-decoration: none; "><img alt="" height="359" src="http://blog.faq-book.com/wp-content/uploads/image/VMware/VMware%20ESXi%20ghettoVCB.sh/5.jpg" width="650" style="border: 1px solid rgb(204, 204, 204); padding: 6px; "></a><br></font></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">1.2&nbsp;</span><span style="font-family: 細明體; ">開啟<span lang="EN-US">SSH</span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US">[Configuration]</span><span style="font-family: 新細明體, serif; ">→</span><span lang="EN-US" style="font-family: 細明體; ">[Security Profile]</span><span style="font-family: 新細明體, serif; ">→</span><span lang="EN-US" style="font-family: 細明體; ">[Properties]<o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><font face="細明體"><a href="http://blog.faq-book.com/wp-content/uploads/image/VMware/VMware%20ESXi%20ghettoVCB.sh/6.jpg" style="outline: none; border: none; color: rgb(63, 138, 216); text-decoration: none; "><img alt="" height="383" src="http://blog.faq-book.com/wp-content/uploads/image/VMware/VMware%20ESXi%20ghettoVCB.sh/6.jpg" width="650" style="border: 1px solid rgb(204, 204, 204); padding: 6px; "></a><br></font></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US">[SSH]</span><span style="font-family: 新細明體, serif; ">→</span><span lang="EN-US" style="font-family: 細明體; ">[Options]</span><span style="font-family: 新細明體, serif; ">→</span><span lang="EN-US" style="font-family: 細明體; ">[Start]<o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><font face="細明體"><a href="http://blog.faq-book.com/wp-content/uploads/image/VMware/VMware%20ESXi%20ghettoVCB.sh/7.jpg" style="outline: none; border: none; color: rgb(63, 138, 216); text-decoration: none; "><img alt="" height="686" src="http://blog.faq-book.com/wp-content/uploads/image/VMware/VMware%20ESXi%20ghettoVCB.sh/7.jpg" width="650" style="border: 1px solid rgb(204, 204, 204); padding: 6px; "></a><br></font></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); ">&nbsp;</p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); ">&nbsp;</p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><b><span lang="EN-US" style="font-family: 細明體; ">2. ghettoVCB.sh</span></b><b><span style="font-family: 細明體; ">安裝與設定<span lang="EN-US"><o:p></o:p></span></span></b></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">在開始安裝之前有一點要注意一下<span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">由於<span lang="EN-US">esxi</span>在重開機之後會把某些資料刪除,因此會建議把此檔留在<span lang="EN-US">datastore1</span>此硬碟空間內,才不會因重開機</span><span style="font-family: 細明體; ">後檔案就被刪除了。</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US">2.1&nbsp;</span><span style="font-family: 細明體; ">安裝<span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">基本上<span lang="EN-US">datastore1</span>此空間的路徑為<span lang="EN-US">/vmfs/volumes/datastore1<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">解<span lang="EN-US">tar</span>後會看到<span lang="EN-US">ghettoVCB.sh</span>,此腳本正是所需要的<span lang="EN-US"><o:p></o:p></span></span></p><br style="color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" width="595" style="margin: 1em 0px 1em 8.45pt; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; width: 446.55pt; background-color: black; border: none; "><tbody><tr><td width="595" style="width: 446.55pt; border: 1pt inset; "><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">~ #&nbsp;</span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; color: yellow; ">cd /vmfs/volumes/datastore1</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: yellow; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">~ #&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: yellow; ">tar -zxvf lamw-ghettoVCB-518cef7.tar.gz<o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">~ #&nbsp;</span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; color: yellow; ">cd lamw-ghettoVCB-518cef7</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">~ #&nbsp;</span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; color: yellow; ">ls</span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">README&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ghettoVCB-restore.sh</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">ghettoVCB-vm_backup_configuration_template&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;ghettoVCB.conf</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><span style="color: rgb(255, 255, 255); ">ghettoVCB-restore_vm_restore_configuration_template</span>&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ghettoVCB.sh</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></p></td></tr></tbody></table><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">2.2&nbsp;</span><span style="font-family: 細明體; ">基本<span lang="EN-US">ghettoVCB.sh</span>設定說明<span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">以下說明 基本常用到的設定。<span lang="EN-US"><o:p></o:p></span></span></p><br style="color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" width="595" style="margin: 1em 0px 1em 8.45pt; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; width: 446.55pt; background-color: black; border: none; "><tbody><tr><td width="595" style="width: 446.55pt; border: 1pt inset; "><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">~ #&nbsp;</span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; color: yellow; ">vi&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; color: yellow; ">ghettoVCB.sh<o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span><span style="font-size: 10pt; font-family: 細明體; ">設定備份所存放的路徑,在這邊設定備份到本地端</span></span><span style="font-size: 10pt; font-family: 細明體; color: red; "><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">VM_BACKUP_VOLUME=/vmfs/volumes/datastore1/backup</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span><span style="font-size: 10pt; font-family: 細明體; ">定義被份的硬碟格式<span lang="EN-US">(zeroedthick, eagerzeroedthick, thin, and 2gbsparse are available)</span></span></span><span style="font-size: 10pt; font-family: 細明體; color: red; "><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span lang="EN-US" style="color: rgb(255, 0, 0); font-size: 10pt; font-family: 細明體; ">#</span><font color="#ff0000" face="細明體" size="2">若想更了解硬碟格式說明請參考「<a href="http://blog.faq-book.com/?p=4043" style="outline: none; border: none; color: rgb(63, 138, 216); text-decoration: none; ">VMware ESX(i)虛擬磁碟格式介紹</a>」</font><span style="font-size: 10pt; font-family: 細明體; color: red; "><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">DISK_BACKUP_FORMAT=thin</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span><span style="font-size: 10pt; font-family: 細明體; ">定義備份保留的數量</span></span><span style="font-size: 10pt; font-family: 細明體; color: red; "><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">VM_BACKUP_ROTATION_COUNT=3</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span><span style="font-size: 10pt; font-family: 細明體; ">虛擬機<span lang="EN-US">POWER OFF</span>時不會要求<span lang="EN-US">snapshoting (enable=1,disable=0)</span></span></span><span style="font-size: 10pt; font-family: 細明體; color: red; "><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">POWER_VM_DOWN_BEFORE_BACKUP=0</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span><span style="font-size: 10pt; font-family: 細明體; ">定義沒有安裝<span lang="EN-US">VMware Tools</span>的虛擬機是否可以在硬碟<span lang="EN-US">POWER OFF</span>時啟用<span lang="EN-US">"POWER_VM_DOWN_BEFORE_BACKUP"</span></span></span><span style="font-size: 10pt; font-family: 細明體; color: red; "><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">ENABLE_HARD_POWER_OFF=0</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span><span style="font-size: 10pt; font-family: 細明體; ">如果啟用<span lang="EN-US">"ENABLE_HARD_POWER_OFF"</span>則此定義腳本執行強制關閉時<span lang="EN-US">(60</span>秒<span lang="EN-US">)</span>倒數運算</span></span><span style="font-size: 10pt; font-family: 細明體; color: red; "><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">ITER_TO_WAIT_SHUTDOWN=3</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span><span style="font-size: 10pt; font-family: 細明體; ">設定<span lang="EN-US">POWER DOWN</span>的時間。在等待關閉時<span lang="EN-US">VM</span>會放棄或是忽略特定的<span lang="EN-US">VM</span>備份</span></span><span style="font-size: 10pt; font-family: 細明體; color: red; "><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">POWER_DOWN_TIMEOUT=5</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span><span style="font-size: 10pt; font-family: 細明體; ">設定等待<span lang="EN-US">VM</span>快照的時間,在等待關閉時會放棄和忽略特定備份的<span lang="EN-US">VM</span></span></span><span style="font-size: 10pt; font-family: 細明體; color: red; "><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">SNAPSHOT_TIMEOUT=15</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span><span style="font-size: 10pt; font-family: 細明體; ">備份是否啟用壓縮<span lang="EN-US">(enable=1,disable=0)</span></span></span><span style="font-size: 10pt; font-family: 細明體; color: red; "><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">ENABLE_COMPRESSION=0</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span><span style="font-size: 10pt; font-family: 細明體; ">定義虛擬機的記憶體是否<span lang="EN-US">snapped</span>和是否啟用<span lang="EN-US">quiescing(enable=1,disable=0)</span></span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">VM_SNAPSHOT_MEMORY=0</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">VM_SNAPSHOT_QUIESCE=0</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span><span style="font-size: 10pt; font-family: 細明體; ">接下來為<span lang="EN-US">NFS</span>的相關設定</span></span><span style="font-size: 10pt; font-family: 細明體; color: red; "><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span><span style="font-size: 10pt; font-family: 細明體; ">定義非持久性的<span lang="EN-US">NFS</span>備份</span></span><span style="font-size: 10pt; font-family: 細明體; color: red; "><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">ENABLE_NON_PERSISTENT_NFS=0</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span><span style="font-size: 10pt; font-family: 細明體; ">以下是給不想讓<span lang="EN-US">NFS</span>與系統長期連接的設定。允許只在備份的過程中連接到<span lang="EN-US">NFS</span>,</span></span><span style="font-size: 10pt; font-family: 細明體; color: red; "><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span style="font-size: 10pt; font-family: 細明體; ">並使用到以下<span lang="EN-US">5</span>個變數。</span></span><span style="font-size: 10pt; font-family: 細明體; color: red; "><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span><span style="font-size: 10pt; font-family: 細明體; ">是否要卸載<span lang="EN-US">NFS(yes=1,no=0)</span></span></span><span lang="EN-US" style="font-family: 細明體; color: white; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">UNMOUNT_NFS=0</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#NFS Server&nbsp;</span><span style="font-size: 10pt; font-family: 細明體; ">的地址<span lang="EN-US">(ip</span>或主機名<span lang="EN-US">)</span></span></span><span style="font-size: 10pt; font-family: 細明體; "><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">NFS_SERVER=172.30.0.195</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#NFS&nbsp;</span><span style="font-size: 10pt; font-family: 細明體; ">存放檔案的路徑</span></span><span style="font-size: 10pt; font-family: 細明體; "><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">NFS_MOUNT=/nfsshare</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#NFS&nbsp;</span><span style="font-size: 10pt; font-family: 細明體; ">資料存放地方的名稱</span></span><span style="font-size: 10pt; font-family: 細明體; "><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">NFS_LOCAL_NAME=nfs_storage_backup</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span><span style="font-size: 10pt; font-family: 細明體; ">虛擬機上<span lang="EN-US">NFS</span>備份的目錄</span></span><span style="font-size: 10pt; font-family: 細明體; color: red; "><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">NFS_VM_BACKUP_DIR=mybackups</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span><span style="font-size: 10pt; font-family: 細明體; ">以下是<span lang="EN-US">MAIL&nbsp;</span>發送<span lang="EN-US">LOG</span>的設定</span></span><span style="font-size: 10pt; font-family: 細明體; color: red; "><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span><span style="font-size: 10pt; font-family: 細明體; ">是否要透過電子郵件來發送備份<span lang="EN-US">LOG(yes=1,no=0)</span></span></span><span style="font-size: 10pt; font-family: 細明體; color: red; "><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">EMAIL_LOG=1</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span><span style="font-size: 10pt; font-family: 細明體; ">是否發送<span lang="EN-US">debug</span>的<span lang="EN-US">LOG</span>,這是做為測試使用。</span></span><span style="font-size: 10pt; font-family: 細明體; color: red; "><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">EMAIL_DEBUG=1</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#mail server</span><span style="font-size: 10pt; font-family: 細明體; ">的<span lang="EN-US">ip</span>或網址</span></span><span style="font-size: 10pt; font-family: 細明體; "><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">EMAIL_SERVER=auroa.primp-industries.com</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span><span style="font-size: 10pt; font-family: 細明體; ">設定<span lang="EN-US">mail&nbsp;</span>所使用的<span lang="EN-US">port</span></span></span><span style="font-size: 10pt; font-family: 細明體; color: red; "><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">EMAIL_SERVER_PORT=25</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span><span style="font-size: 10pt; font-family: 細明體; ">設定每封<span lang="EN-US">mail</span>之間發送的延遲時間。</span></span><span style="font-size: 10pt; font-family: 細明體; color: red; "><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">EMAIL_DELAY_INTERVAL=1</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span><span style="font-size: 10pt; font-family: 細明體; ">收件人的<span lang="EN-US">mail</span></span></span><span style="font-size: 10pt; font-family: 細明體; color: red; "><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">EMAIL_TO=auroa@primp-industries.com</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span><span style="font-size: 10pt; font-family: 細明體; ">寄件人的<span lang="EN-US">mail</span></span></span><span style="font-size: 10pt; font-family: 細明體; color: red; "><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">EMAIL_FROM=root@ghettoVCB</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p></td></tr></tbody></table><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><b><span lang="EN-US" style="font-family: 細明體; ">3. ghettoVCB.sh</span></b><b><span style="font-family: 細明體; ">參數說明<span lang="EN-US"><o:p></o:p></span></span></b></p><br style="color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" width="595" style="margin: 1em 0px 1em 8.45pt; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; width: 446.55pt; background-color: black; border: none; "><tbody><tr><td width="595" style="width: 446.55pt; border: 1pt inset; "><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">~ #&nbsp;</span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; color: yellow; ">./ghettoVCB.sh<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">Logging output to "/tmp/ghettoVCB-2011-12-18_17-32-09.log" …<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">2011-12-18 17:32:10&nbsp;<span class="Apple-style-span" style="line-height: 17px; ">-</span><span class="Apple-style-span" style="line-height: 17px; text-align: left; ">-</span>&nbsp;info: ERROR: Incorrect number of arguments!<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">###############################################################################<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">#<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "># ghettoVCB for ESX/ESXi 3.5, 4.x+ and 5.0<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "># Author: William Lam<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "># http://www.virtuallyghetto.com/<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "># Documentation: http://communities.vmware.com/docs/DOC-8760<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "># Created: 11/17/2008<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "># Last modified: 2011_11_19 Version 1<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">#<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">###############################################################################<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">&nbsp;</span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">Usage: ./ghettoVCB.sh -f [VM_BACKUP_UP_LIST] -c [VM_CONFIG_DIR] -l [LOG_FILE] -d [DEBUG_LEVEL] -g [GLOBAL_CONF] -e [VM_EXCLUSION_LIST]<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">&nbsp;</span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">OPTIONS:<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">&nbsp;&nbsp; -a&nbsp;&nbsp;&nbsp;&nbsp; Backup all VMs on host&nbsp;&nbsp;<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">(</span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 細明體; ">備份主機上所有的虛擬機<span lang="EN-US">)</span></span></span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 細明體; "><span lang="EN-US"><o:p></o:p></span></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">&nbsp;&nbsp; -f&nbsp;&nbsp;&nbsp;&nbsp; List of VMs to backup&nbsp;&nbsp;&nbsp;<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span style="color: rgb(255, 0, 0); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">(</span><span style="font-size: 10pt; font-family: 細明體; ">針對<span lang="EN-US">List</span>名單內的虛擬機備份<span lang="EN-US">)</span></span></span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 細明體; color: red; "><span lang="EN-US"><o:p></o:p></span></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">&nbsp;&nbsp; -c&nbsp;&nbsp;&nbsp;&nbsp; VM configuration directory for VM backups<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">(VM&nbsp;</span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 細明體; ">配置目錄<span lang="EN-US">for VM</span>備份<span lang="EN-US">)</span></span></span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 細明體; "><span lang="EN-US"><o:p></o:p></span></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">&nbsp;&nbsp; -g&nbsp;&nbsp;&nbsp;&nbsp; Path to global ghettoVCB configuration file<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">&nbsp;&nbsp; -l&nbsp;&nbsp;&nbsp;&nbsp; File to output logging&nbsp; &nbsp;<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">(</span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 細明體; ">將<span lang="EN-US">LOG</span>記錄寫到指定檔案內<span lang="EN-US">)</span></span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">&nbsp;&nbsp; -d&nbsp;&nbsp;&nbsp;&nbsp; Debug level [info|debug|dryrun] (default: info)&nbsp;&nbsp;<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span style="color: rgb(255, 0, 0); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">(Debug</span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 細明體; ">測試,不會產生備份<span lang="EN-US">)</span></span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">&nbsp;</span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">(e.g.)<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">&nbsp;</span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">Backup VMs stored in a list<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span style="font-size: 10pt; color: red; ">只備份<span lang="EN-US">list</span>內的虛擬機<span lang="EN-US"><o:p></o:p></span></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">&nbsp;&nbsp;&nbsp;&nbsp; ./ghettoVCB.sh -f vms_to_backup<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">&nbsp;</span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">Backup all VMs residing on this host<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span style="font-size: 10pt; color: red; ">全部備份<span lang="EN-US"><o:p></o:p></span></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">&nbsp;&nbsp;&nbsp;&nbsp; ./ghettoVCB.sh -a<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">&nbsp;</span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">Backup all VMs residing on this host except for the VMs in the exclusion list<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span style="font-size: 10pt; color: red; ">除了排除清單<span lang="EN-US">(vm_exclusion_list)</span>上的虛擬機外,剩下的都備份<span lang="EN-US"><o:p></o:p></span></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">&nbsp;&nbsp;&nbsp;&nbsp; ./ghettoVCB.sh -a -e vm_exclusion_list<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">&nbsp;</span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">Backup VMs based on specific configuration located in directory<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span style="font-size: 10pt; color: red; ">根據<span lang="EN-US">vm_backup_configs</span>中特定配置來備份<span lang="EN-US">vms_to_backup</span>內指定的虛擬機<span lang="EN-US"><o:p></o:p></span></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">&nbsp;&nbsp;&nbsp;&nbsp; ./ghettoVCB.sh -f vms_to_backup -c vm_backup_configs<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">&nbsp;</span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">Backup VMs using global ghettoVCB configuration file<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span style="font-size: 10pt; color: red; ">備份虛擬機時使用<span lang="EN-US">ghettoVCB.conf</span>此設定檔來備份<span lang="EN-US">vms_to_backup</span>內指定的虛擬機<span lang="EN-US"><o:p></o:p></span></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">&nbsp;&nbsp;&nbsp;&nbsp; ./ghettoVCB.sh -f vms_to_backup -g /global/ghettoVCB.conf<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">&nbsp;</span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">Output will log to /tmp/ghettoVCB.log (consider logging to local or remote datastore to persist logs)<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span style="font-size: 10pt; color: red; ">輸出的記錄到<span lang="EN-US">/tmp/ghettoVCB.log(</span>可自行設定<span lang="EN-US">LOG</span>所儲存的路徑和檔案<span lang="EN-US">)<o:p></o:p></span></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">&nbsp;&nbsp;&nbsp;&nbsp; ./ghettoVCB.sh -f vms_to_backup -l /vmfs/volume/local-storage/ghettoVCB.log<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">&nbsp;</span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">Dry run (no backup will take place)<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">Debug</span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 細明體; ">測試,不會產生備份</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">&nbsp;&nbsp;&nbsp;&nbsp; ./ghettoVCB.sh -f vms_to_backup -d dryrun</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></p></td></tr></tbody></table><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); ">&nbsp;</p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><b><span lang="EN-US" style="font-family: 細明體; ">4.&nbsp;</span></b><b><span style="font-family: 細明體; ">範例操作</span></b></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">4.1&nbsp;</span><span style="font-family: 細明體; ">建立<span lang="EN-US">List vms_to_backup<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">在開始操作之前,先來建立<span lang="EN-US">vms_to_backup<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">List</span><span style="font-family: 細明體; ">的名稱可自己設定<span lang="EN-US"><o:p></o:p></span></span></p><br style="color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" width="595" style="margin: 1em 0px 1em 8.45pt; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; width: 446.55pt; background-color: black; border: none; "><tbody><tr><td width="595" style="width: 446.55pt; border: 1pt inset; "><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">~ # vi vms_to_backup<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 細明體; ">加入要指定的虛擬機名稱</span></span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 細明體; "><span lang="EN-US"><o:p></o:p></span></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">linux</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p></td></tr></tbody></table><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">4.2 Dry run</span><span style="font-family: 細明體; ">測試,不會產生備份<span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">以下有幾個比較需要知道的部份會已黃色字體標示<span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">在預設定情況下<span lang="EN-US">log</span>都是存放在<span lang="EN-US">/tmp</span>內,若是有需要保留<span lang="EN-US">log</span>的話請參考下方設定來修改<span lang="EN-US">log</span>存放處,</span><span style="font-family: 細明體; ">避免重開機後</span><span lang="EN-US" style="font-family: 細明體; ">log</span><span style="font-family: 細明體; ">會被清除</span></p><br style="color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" width="595" style="margin: 1em 0px 1em 8.45pt; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; width: 446.55pt; background-color: black; border: none; "><tbody><tr><td width="595" style="width: 446.55pt; border: 1pt inset; "><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">~ #</span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; color: yellow; ">&nbsp;./ghettoVCB.sh -f vms_to_backup -d dryrun<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">Logging output to "</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: yellow; ">/tmp/ghettoVCB-2011-12-27_13-23-26.log</span><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">" …&nbsp;</span></span><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span><span style="font-size: 10pt; font-family: 細明體; ">備份<span lang="EN-US">LOG</span>存放的地方</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">Insufficient arguments.</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:23:26 — info: =========== ghettoVCB LOG START ============</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:23:26 — info: CONFIG – VERSION = 2011_11_19_1</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:23:26 — info: CONFIG – GHETTOVCB_PID = 449441</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:23:26 — info: CONFIG – VM_BACKUP_VOLUME = /vmfs/volumes/datastore1/backup/backup</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:23:26 — info: CONFIG – VM_BACKUP_ROTATION_COUNT = 3</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:23:26 — info: CONFIG – VM_BACKUP_DIR_NAMING_CONVENTION</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">= 2011-12-27_13-23-26</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:23:26 — info: CONFIG – DISK_BACKUP_FORMAT = thin</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:23:26 — info: CONFIG – POWER_VM_DOWN_BEFORE_BACKUP = 0</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:23:26 — info: CONFIG – ENABLE_HARD_POWER_OFF = 0</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:23:26 — info: CONFIG – ITER_TO_WAIT_SHUTDOWN = 3</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:23:26 — info: CONFIG – POWER_DOWN_TIMEOUT = 5</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:23:26 — info: CONFIG – SNAPSHOT_TIMEOUT = 15</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:23:26 — info: CONFIG – LOG_LEVEL = dryrun</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:23:26 — info: CONFIG – BACKUP_LOG_OUTPUT = /tmp/ghettoVCB-2011-12-27_13-23-26.log&nbsp;&nbsp;&nbsp;</span></span><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;#</span><span style="font-size: 10pt; font-family: 細明體; ">備份<span lang="EN-US">LOG</span>所存放的地方</span></span><span lang="EN-US" style="font-size: 10pt; color: yellow; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:23:26 — info: CONFIG – VM_SNAPSHOT_MEMORY = 0</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:23:26 — info: CONFIG – VM_SNAPSHOT_QUIESCE = 0</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:23:26 — info: CONFIG – VMDK_FILES_TO_BACKUP = all</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:23:26 — info: CONFIG – EMAIL_LOG = 0</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:23:26 — info:</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:23:27 — dryrun: ###############################################</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:23:27 — dryrun: Virtual Machine: linux</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:23:27 — dryrun: VM_ID: 1</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:23:27 — dryrun: VMX_PATH: /vmfs/volumes/datastore1/linux/linux.vmx</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:23:27 — dryrun: VMX_DIR: /vmfs/volumes/datastore1/linux</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:23:27 — dryrun: VMX_CONF: linux/linux.vmx</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:23:27 — dryrun: VMFS_VOLUME: datastore1</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:23:27 — dryrun: VMDK(s):</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:23:27 — dryrun: linux.vmdk&nbsp;&nbsp;&nbsp; 100 GB&nbsp;&nbsp;&nbsp;</span></span><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span><span style="font-size: 10pt; font-family: 細明體; ">備份<span lang="EN-US">VM</span>的大小</span></span><span lang="EN-US" style="font-size: 10pt; color: yellow; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:23:27 — dryrun: INDEPENDENT VMDK(s):</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:23:27 — dryrun: TOTAL_VM_SIZE_TO_BACKUP: 100 GB&nbsp;&nbsp;</span></span><span lang="EN-US" style="font-family: 細明體; color: red; ">#</span><span style="font-size: 10pt; color: red; ">總備份的大小</span><span lang="EN-US" style="font-family: 細明體; color: yellow; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:23:27 — dryrun: ###############################################</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:23:27 — info: ######</span></span><span style="color: rgb(255, 255, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;Final status: OK, only a dryrun.&nbsp;</span></span><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">######</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span><span style="font-size: 10pt; font-family: 細明體; ">測試是否<span lang="EN-US">OK</span>,並告知此次只有<span lang="EN-US">dryrun</span></span></span><span style="font-size: 10pt; font-family: 細明體; color: red; "><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:23:27 — info: ==========ghettoVCB LOG END =============</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p></td></tr></tbody></table><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">4.3 Debug&nbsp;</span><span style="font-family: 細明體; ">測試備份<span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">此模式執行後會提供更詳細的訊息,內容包括備份檔案和<span lang="EN-US">LOG</span>存放的路徑,以及備份使用到的空間相關訊息。</span><span style="font-family: 細明體; ">對用來排除故障是相當好用的</span></p><br style="color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" width="595" style="margin: 1em 0px 1em 8.45pt; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; width: 446.55pt; background-color: black; border: none; "><tbody><tr><td width="595" style="width: 446.55pt; border: 1pt inset; "><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">~ #&nbsp;</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; color: yellow; ">./ghettoVCB.sh -f vms_to_backup -d debug</span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">Logging output to "/tmp/ghettoVCB-2011-12-27_13-37-15.log" …</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">Insufficient arguments.</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:15 — info: ========== ghettoVCB LOG START===========</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:15 — debug: Succesfully acquired lock directory – /tmp/ghettoVCB.lock</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:15 — debug: HOST VERSION: VMware ESXi 5.0.0 build-469512</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:15 — debug: HOST LEVEL: VMware ESXi 5.0.0 GA</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:16 — debug: HOSTNAME: localhost</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:16 — info: CONFIG – VERSION = 2011_11_19_1</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:16 — info: CONFIG – GHETTOVCB_PID = 450122</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:16 — info: CONFIG – VM_BACKUP_VOLUME = /vmfs/volumes/datastore1/backup/backup</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:16 — info: CONFIG – VM_BACKUP_ROTATION_COUNT = 3</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:16 — info: CONFIG – VM_BACKUP_DIR_NAMING_CONVENTION</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">= 2011-12-27_13-37-15</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:16 — info: CONFIG – DISK_BACKUP_FORMAT = thin</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:16 — info: CONFIG – POWER_VM_DOWN_BEFORE_BACKUP = 0</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:16 — info: CONFIG – ENABLE_HARD_POWER_OFF = 0</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:16 — info: CONFIG – ITER_TO_WAIT_SHUTDOWN = 3</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:16 — info: CONFIG – POWER_DOWN_TIMEOUT = 5</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:16 — info: CONFIG – SNAPSHOT_TIMEOUT = 15</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:16 — info: CONFIG – LOG_LEVEL = debug</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:16 — info: CONFIG – BACKUP_LOG_OUTPUT = /tmp/ghettoVCB-2011-12-27_13-37-15.log</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:16 — info: CONFIG – VM_SNAPSHOT_MEMORY = 0</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:16 — info: CONFIG – VM_SNAPSHOT_QUIESCE = 0</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:16 — info: CONFIG – VMDK_FILES_TO_BACKUP = all</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:16 — info: CONFIG – EMAIL_LOG = 0</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:16 — info:</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:19 — debug: Storage Information before backup:</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:19 — debug: SRC_DATASTORE: datastore1</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:19 — debug: SRC_DATASTORE_CAPACITY: 267.2 GB</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:19 — debug: SRC_DATASTORE_FREE: 146.2 GB</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:19 — debug: SRC_DATASTORE_BLOCKSIZE: 1</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:19 — debug: SRC_DATASTORE_MAX_FILE_SIZE: 256 GB</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:19 — debug:</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:19 — debug: DST_DATASTORE: datastore1</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:19 — debug: DST_DATASTORE_CAPACITY: 267.2 GB</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:19 — debug: DST_DATASTORE_FREE: 146.2 GB</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:19 — debug: DST_DATASTORE_BLOCKSIZE: 1</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:19 — debug: DST_DATASTORE_MAX_FILE_SIZE: 256 GB</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:19 — debug:</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:19 — debug: getVMDKs() – linux.vmdk###100:</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:19 — info: Initiate backup for linux</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:19 — info: Creating Snapshot "ghettoVCB-snapshot-2011-12-27" for linux</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:21 — debug: Waiting for snapshot "ghettoVCB-snapshot-2011-12-27" to be created</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:21 — debug: Snapshot timeout set to: 900 seconds</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:22 — debug: findVMDK() – Searching for VMDK: "linux.vmdk" to backup</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:37:22 — debug: /sbin/vmkfstools -i "/vmfs/volumes/datastore1/linux/linux.vmdk" -a "lsilogic" -d "thin" "/vmfs/volumes/datastore1/backup/backup/linux/linux-2011-12-27_13-37-15/linux.vmdk"</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">Destination disk format: VMFS thin-provisioned</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">Cloning disk '/vmfs/volumes/datastore1/linux/linux.vmdk'…</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">Clone: 94% done.</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:38:19 — info: Removing snapshot from linux …</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:38:19 — info: Backup Duration: 60 Seconds</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:38:19 — info: Successfully completed backup for linux!</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:38:21 — debug: Storage Information after backup:</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:38:21 — debug: SRC_DATASTORE: datastore1</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:38:21 — debug: SRC_DATASTORE_CAPACITY: 267.2 GB</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:38:21 — debug: SRC_DATASTORE_FREE: 146.2 GB</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:38:21 — debug: SRC_DATASTORE_BLOCKSIZE: 1</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:38:21 — debug: SRC_DATASTORE_MAX_FILE_SIZE: 256 GB</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:38:21 — debug:</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:38:21 — debug: DST_DATASTORE: datastore1</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:38:21 — debug: DST_DATASTORE_CAPACITY: 267.2 GB</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:38:21 — debug: DST_DATASTORE_FREE: 146.2 GB</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:38:21 — debug: DST_DATASTORE_BLOCKSIZE: 1</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:38:21 — debug: DST_DATASTORE_MAX_FILE_SIZE: 256 GB</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:38:21 — debug:</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:38:21 — info: ###### Final status: All VMs backed up OK! ######</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:38:21 — debug: Succesfully removed lock directory – /tmp/ghettoVCB.lock</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2011-12-27 13:38:21 — info: ===========ghettoVCB LOG END=============</span></span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></p></td></tr></tbody></table><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">4.4&nbsp;</span><span style="font-family: 細明體; ">針對<span lang="EN-US">list(vms_to_backup)</span>中指定的<span lang="EN-US">VM</span>虛擬機進行備份<span lang="EN-US"><o:p></o:p></span></span></p><br style="color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" width="595" style="margin: 1em 0px 1em 8.45pt; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; width: 446.55pt; background-color: black; border: none; "><tbody><tr><td width="595" style="width: 446.55pt; border: 1pt inset; "><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">~ # ./ghettoVCB.sh -f vms_to_backup</span></span></span><span lang="EN-US" style="font-size: 10pt; color: white; "><o:p></o:p></span></p></td></tr></tbody></table><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">4.5&nbsp;</span><span style="font-family: 細明體; ">備份所有的<span lang="EN-US">VM</span>虛擬機<span lang="EN-US"><o:p></o:p></span></span></p><br style="color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" width="595" style="margin: 1em 0px 1em 8.45pt; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; width: 446.55pt; background-color: black; border: none; "><tbody><tr><td width="595" style="width: 446.55pt; border: 1pt inset; "><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">~ # ./ghettoVCB.sh -a</span></span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></p></td></tr></tbody></table><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">4.6&nbsp;</span><span style="font-family: 細明體; ">排除<span lang="EN-US">list</span>中指定的<span lang="EN-US">VM</span>虛擬機不進行備份外,其他全部備份<span lang="EN-US"><o:p></o:p></span></span></p><br style="color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" width="595" style="margin: 1em 0px 1em 8.45pt; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; width: 446.55pt; background-color: black; border: none; "><tbody><tr><td width="595" style="width: 446.55pt; border: 1pt inset; "><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">~ # vi vm_exclusion_list</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span><span style="font-size: 10pt; font-family: 細明體; ">加入要指定排除的虛擬機名稱</span></span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 細明體; "><span lang="EN-US"><o:p></o:p></span></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">linux</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">~ # ./ghettoVCB.sh -a -e vm_exclusion_list</span></span></span><span lang="EN-US" style="font-size: 10pt; color: white; "><o:p></o:p></span></p></td></tr></tbody></table><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p></div>
頁: [1]
查看完整版本: [轉貼]VMware esxi 備份ghettoVCB.sh基本設定說明