1 頁 (共 1 頁)

[問題]備份檔案大小差很多

發表於 : 2003-06-05 01:37
拉拉蹦
●架設主機作業系統:Linux
●快速架站程式:無
●上網方式:ADSL
●安裝的程式: Apache 版本 1.3.27 (Unix)、MySQL 版本 4.0.12、PHP 版本 4.3.1
●phpBB2 版本:phpBB 2.0 RC2
●錯誤代碼:無
●錯誤狀態:備份檔案大小差異\r

我換了一家虛擬主機公司後,
把原先從"備份資料庫 "備份下來的資料還原上去,
過幾天在備份時,
發現同樣從"備份資料庫"備份下來的 SQL 檔,
竟然比前一家虛擬主機公司時跑的 phpbb 要來得小很多,
前一家我的備份資料有 11MB,
而這家新的主機上,同樣的資料卻讓備份檔案僅有 7MB,
所有設定都一樣,
怎麼會出現這種情形?
有沒有哪位朋友也發現過的?
可否指教一下?謝謝!

發表於 : 2003-06-05 21:38
Mac
你是用 phpbb 站的備份功能嗎?
建議你使用 phpmyadmin 才能完整的備份所有資料

~Mac

發表於 : 2003-06-07 00:34
拉拉蹦
Mac 寫:你是用 phpbb 站的備份功能嗎?
建議你使用 phpmyadmin 才能完整的備份所有資料

~Mac
是啊,我都是用 phpBB 管理介面裡頭的備份功能呢!
會跟 phpmyadmin 備份到的資料有所差別嗎?
天啊~~~~~

那.........
可不可以告訴我,在 phpmyadmin 裡頭,
要勾選哪些選項(像是 drop table 之類的)才是「完整」備份?
謝謝!

或者......之前是不是有人已經討論過了? :oops:
很抱歉,我還在搜尋當中............
用 「phpmyadmin」 跟「備份」搜尋到的文章實在好多啊........

發表於 : 2003-06-10 14:55
拉拉蹦
啊..........難道沒有人可以回答我的問題嗎?
幫幫忙好嗎?

請問到底在 phpadmin 裡頭該怎樣備份才算是完整?
我在"檢視資料庫的備份概要 (dump schema)"裡頭選了所有 phpBB 的表格,
也選了「結構與資料」,也有勾選「增加 'drop table'」,
下載儲存時沒有選 zipped 或者 gzipped,
可是備份出來的SQL檔竟然會比用 phpBB 管理介面備份出來的還要小!
真是奇怪...........

另外,我打開了兩個 SQL 檔來檢查,
一個是用 phpmyadmin 備份的,另一個是用 phpBB 管理介面備份的
在一開始的地方就有差別,可不可以請教大家為什麼?

用 phpmyadmin 備份的:

代碼: 選擇全部

#
# 列出以下資料庫的數據: `phpbb3_auth_access`
#

INSERT INTO phpbb3_auth_access VALUES (3, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
INSERT INTO phpbb3_auth_access VALUES (40, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
INSERT INTO phpbb3_auth_access VALUES (187, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
INSERT INTO phpbb3_auth_access VALUES (205, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
INSERT INTO phpbb3_auth_access VALUES (70, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
INSERT INTO phpbb3_auth_access VALUES (308, 12, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0);
INSERT INTO phpbb3_auth_access VALUES (206, 12, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0);
# --------------------------------------------------------
用 phpBB 管理介面備份的

代碼: 選擇全部

#
# Table Data for phpbb3_auth_access\r
#

INSERT INTO phpbb3_auth_access (group_id, forum_id, auth_view, auth_read, auth_post, auth_reply, auth_edit, auth_delete, auth_sticky, auth_announce, auth_vote, auth_pollcreate, auth_attachments, auth_mod) VALUES( '3', '9', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1');
INSERT INTO phpbb3_auth_access (group_id, forum_id, auth_view, auth_read, auth_post, auth_reply, auth_edit, auth_delete, auth_sticky, auth_announce, auth_vote, auth_pollcreate, auth_attachments, auth_mod) VALUES( '40', '11', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1');
INSERT INTO phpbb3_auth_access (group_id, forum_id, auth_view, auth_read, auth_post, auth_reply, auth_edit, auth_delete, auth_sticky, auth_announce, auth_vote, auth_pollcreate, auth_attachments, auth_mod) VALUES( '187', '11', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1');
INSERT INTO phpbb3_auth_access (group_id, forum_id, auth_view, auth_read, auth_post, auth_reply, auth_edit, auth_delete, auth_sticky, auth_announce, auth_vote, auth_pollcreate, auth_attachments, auth_mod) VALUES( '205', '2', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1');
INSERT INTO phpbb3_auth_access (group_id, forum_id, auth_view, auth_read, auth_post, auth_reply, auth_edit, auth_delete, auth_sticky, auth_announce, auth_vote, auth_pollcreate, auth_attachments, auth_mod) VALUES( '70', '12', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1');
INSERT INTO phpbb3_auth_access (group_id, forum_id, auth_view, auth_read, auth_post, auth_reply, auth_edit, auth_delete, auth_sticky, auth_announce, auth_vote, auth_pollcreate, auth_attachments, auth_mod) VALUES( '308', '12', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '0', '0');
INSERT INTO phpbb3_auth_access (group_id, forum_id, auth_view, auth_read, auth_post, auth_reply, auth_edit, auth_delete, auth_sticky, auth_announce, auth_vote, auth_pollcreate, auth_attachments, auth_mod) VALUES( '206', '12', '0', '0', '1', '1', '1', '1', '1', '1', '1', '1', '0', '0');
#
請問,為什麼會有這兩種差別?

我現在實在很緊張,很怕萬一在主機掛點以前沒有備份到完整的資料我就完了..

發表於 : 2003-06-12 01:00
依夢兒
照這一篇文章的作法,在phpMyAdmin內備份就對了:
http://phpbb-tw.net/phpbb/viewtopic.php?t=13125

我備份還原了那麼多次,從來都不會有問題
請放心 :-P