DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

Import Subversion Repository from Subversion Dump File


Overall steps

  1. Get dump file from FTP:

  2. Build repository based on the dump file;

  3. Authorize user of this repository.

Operation details

On Windows

# get dump file with TotalCmd;
cd K:\svn
svnadmin create ALARM
svnadmin load ALARM < f:\tmp\ALARM-dumpfile
# add the following text into file "c:\Program Files\Apache Group\Apache2\svnaccessfile"
    ALARM-dev=user1,user2,user3
    ####
    [ALARM:/Development-Area]
    @ALARM-dev = rw
    @QA = rw
    @Manager = r
    bvt_common = r
    * = 
    [ALARM:/Management-Area]
    @ALARM-dev = rw
    @QA = rw
    @Manager = r
    * = 
    [ALARM:/Release-Area]
    @ALARM-dev = rw
    @Manager = r
    @QA = rw
    test = r
    * = 
    [ALARM:/Test-Area]
    @ALARM-dev = r
    @QA = rw
    @Manager = r
    * = 
# add following text into file "c:\Program Files\Apache Group\Apache2\passwd"
    user1:pwd1
    user2:pwd2
    user3:pwd3

On Linux

ftp 123.xxx.xxx.xxx
> get ALARM-dumpfile
> bye
cd $SVN_REPO_HOME
svnadmin create ALARM
svnadmin load ALARM < ~\ALARM-dumpfile
# edit file svnaccessfile & passwd the same way with in Windows

Note:

The default auth rule is "everyone can access everything" like the following text in svnaccessfile:

[/] 
* = r
@Manager = rw
@QA = rw
@Dev = rw
@TEST-all = rw

then define more detailed rules to override the default one, notice the last line:

[ALARM:/Development-Area]
@ALARM-dev = rw
...
* =

But we can define auth rules in another way:

[/]
* =
[ALARM:/Development-Area]
@ALARM-dev = rw
...


Published

Jun 18, 2014

Last Updated

Jun 18, 2014

Category

Tech

Tags

  • dump 2
  • export 2
  • import 3
  • subversion 4

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor