一開始我想的第一個重點是備份,沒錯!因為如果玩壞了可以馬上利用備份來還原資料,這份文件是參考官方提共的說明http://plone.org/documentation/how-to/backup-plone/?searchterm=backup,有興趣的人可以自行去瀏覽
備份重點
Plone的主要幾個備分重點如下:
Zope database ,Plone的資料庫,主要的資料都在這裡,Zope database的資料庫存放路徑為 /安裝Plone的資料夾/zeocluster/server/var/ 底下,附檔名fs的就是資料庫
(3.1.5已經改為 安裝Plone的資料夾/zeocluster/var/filestorage)
Product,Plone提供很多Product用來擴充Plone的功能,這些額外安裝的Product大都放在/安裝Plone的資料夾/zeocluster/server/Products/底下
Zope configuration file ,Zope的設定檔,通常在 /安裝Plone的資料夾/zeocluster/server/etc/底下,名為zeo.conf
備分方式
上述這些都可以直接使用複製的方式複製在媒體上,除了資料庫。zope的db雖然也可以使用複製的方式來備份,但這並不百分之百代表db會完整的備份下來,尤其是在plone還在運
作的時候,要備份資料庫可以:
1.先將Plone停止,再備份資料庫
2.使用repozo.py 這隻script來備份資料庫,詳細說明請參考Backing up FileStorage files
3.使用Zope管理介面的備份工具
進入Zope的管理介面,在網址列輸入http://localhost:8080/mange,並點選左欄的Control_Panel

進入後,點選主畫面下方的Database Management

在點選你要備份的資料庫

按下PACK,這樣就完成備份

沒有留言:
張貼留言