前幾天發現公司的 SVN Repository 佔用的磁碟空間已經超過8G了, 這樣對未來的備份及維護來說不太好, 再加上現行是把文件跟程式碼都餵到同一個repository, 所以就決定要動手進行分割. 查了一下 SVN Book 中有關 Repository Maintenance 的章節, 發現可以利用 svndumpfilter來達成分割的工作. 基本上只有一個步驟: svnadmin dump <source path> | svndumpfilter include <include prefix> | svnadmin load <dest path> 事實上 svndumpfilter 還有一些參數, 可以利用 svndumpfilter help 來取得說明, 例如: >svndumpfilter help include include: 自傾印串流移除未包含指定字首的節點. usage: svndumpfilter include PATH_PREFIX… 有效選項: –drop-empty-revs : 移除因過濾而產生的空修訂版. [...]
Calendar
Categories
Archives
Blogroll
Recent Posts
Tags
匯率
基金
日劇
樂而忘返
樂而忘返
模型
相聲
賴聲川
電影
Adsense
complain
F1
Firebug
Firefox
flot
Food
FreeBSD
Friends
Full Armor ZZ
Fun
gadget
Game
Greasemonkey
Gundam
Japan
Java
javascript
jQuery
keroro
Music
Nodame Cantabile
OSDC
performance
PicLens
Radio
security
Software
SVN
Taiwan
Userscript
VIL
Wii
Wii Sports
XHTML
XPCOM
Recent Comments