svn
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
svn [2009/08/12 05:12] – created suapapa | svn [2013/08/03 05:04] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | 저장소 생성 : http 프로토콜 사용으로 아래의 스크립트로 돌림 | ||
+ | <code bash> | ||
+ | #!/bin/bash | ||
+ | svnadmin create --fs-type bdb $1 | ||
+ | chown -R www-data.www-data $1 | ||
+ | </ | ||
+ | ====== backup/ | ||
+ | 덤프 스크립트 | ||
+ | <code python> | ||
+ | # | ||
+ | import os, sys | ||
+ | |||
+ | def main(rootDir): | ||
+ | print os.path.realpath(rootDir) | ||
+ | repolist = os.listdir(rootDir) | ||
+ | repolist = map(lambda x: | ||
+ | print repolist | ||
+ | repolist = filter(os.path.isdir, | ||
+ | print repolist | ||
+ | |||
+ | dumplist = [] | ||
+ | for repo in repolist: | ||
+ | print ' | ||
+ | print ' | ||
+ | dumpName = ' | ||
+ | print ' | ||
+ | ret = os.system(' | ||
+ | if ret == 0: | ||
+ | dumplist.append(dumpName) | ||
+ | else: | ||
+ | sys.exit(1) | ||
+ | if not dumplist: | ||
+ | print 'no dump found' | ||
+ | sys.exit(1) | ||
+ | print 'now making tar archive' | ||
+ | os.system(r' | ||
+ | +(' ' | ||
+ | |||
+ | if __name__ == ' | ||
+ | main(sys.argv[1]) | ||
+ | </ | ||
+ | 복구 | ||
+ | <code bash> | ||
+ | svnadmin load {repository} < {dumpfile} | ||
+ | </ | ||
+ | |||
====== cmdline references ====== | ====== cmdline references ====== | ||
저장소변경 | 저장소변경 |
svn.1250053943.txt.gz · Last modified: 2013/08/03 05:04 (external edit)