SVN(Subversion)サーバを移転する方法

ASP, さくらインターネット, XREA.COM, DreamHost

08:43:28, by dozo Email , 45 words, 5023 views   Japanese (JP) del.icio.us

引っ越し作業も楽じゃない。

(ノ・・)ン。。。。。。(((●コロコロッ

$ svnadmin dump /home/xxx/samplerepos.old | gzip > ./samplerepos_old.dump.gz
$ svnadmin create /home/xxx/samplerepos
$ gzip -dc ~/SVN_old.dump.gz | svnadmin load ~/svn/samplerepos


それほど難しくはないようだ。

( ̄-  ̄ ) ウーン

単純にリポジトリディレクトリごとtarで固めるだけでもいけるかも。

[More:]



DreamHostに切り替え内容を少しずつ移転。
VPSに入れていたドメインをDreamHostに移転した。
その際、一番難しそうなSubversionリポジトリの移設作業。

subversionにはバックアップ、リストア辺りも組み込まれているようで、
引っ越しはそれを利用する。

svnadmin dump

でデータを抜き取り、

svnadmin load

でデータを書き戻す。


リポジトリの作成だが、
WebDav上で公開状態になっていても大丈夫なリポジトリは、
DreamHostの管理画面でリポジトリを作成する機能で作成する。
SSLは追加請求されるのでパケットに載せたくないデータはSSH接続にすると良いだろう。


すでにチェックアウト済みのデータは、
チェックアウトし直しするのではなく、
svn switch --relocate、またはtortoiseSVNのRelocateを使う。


Trackback address for this post:

http://hain.jp/htsrv/trackback.php/199

Comments, Trackbacks:

No Comments/Trackbacks for this post yet...

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.

Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
(Line breaks become <br />)
(Set cookies for name, email and url)
(Allow users to contact you through a message form (your email will NOT be displayed.))
This is a captcha-picture. It is used to prevent mass-access by robots.

Please enter the characters from the image above. (case insensitive)

powered by b2evolution

shinobi

Neighbors
Relative
Favorites
PR

極論istの技術屋を始めて早幾年。 流れの速い業界の波にもまれながらも精一杯生きている様をとくとごらんあれ。

Archives
スポンサー

Latest bookmark
Search

Categories

Who's Online?
Misc
Syndicate this blog XML

Valid XHTML 1.0! Valid CSS! Valid RSS 2.0! Valid Atom 1.0!