Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 3 and Version 4 of Ticket #432, comment 2


Ignore:
Timestamp:
Jun 8, 2016, 5:42:59 PM (8 years ago)
Author:
lferran
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #432, comment 2

    v3 v4  
    1 = Subversion migration =
    2 
    3 == Requirements ==
    4 The URL should remain the same, otherwise checkouts would not work. In
    5 case the URL would change, each user should type this in their local
    6 computers, where their checkouts are:
    7 {{{
    8 #!sh
    9 svn relocate OLD_URL NEW_URL
    10 }}}
    11 
    12 If we want the URLs to remain the same, first the Apache2 virtual
    13 hosts configuration in the new server must imitate the one in the old
    14 server!
    15 
    16 == SVN migration ==
    17 
    18 First of all: do some tests! Then:
    19 
    20 * Initially, the svn.orxonox.net DNS entry points to the old server.
    21 * The SVN hooks must be set in the old server before everything!!!
    22 * We must put all repositories to read-only and inform everyone that the migration will be done.
    23 * One by one, migrate all repositories as shown in the section below.
    24 * Change the DNS entry to point to the IP of the new server.
    25 
    26 == Repositories migration ==
    27 1. Create a dump portable file of the repository in the old server:
    28 {{{
    29 #!sh
    30 svnadmin dump /var/svn/testferran/ > ~/testferran.svn_dump
    31 }}}
    32 
    33 2. Move it (scp) to the new server.
    34 
    35 3. Create a new repository with the same name in the new server:
    36 {{{
    37 #!sh
    38 svnadmin create testferran
    39 }}}
    40 
    41 4. Load the dump file on the new repository in the new server with the following command:
    42 {{{
    43 #!sh
    44 sudo svnadmin load --force-uuid --bypass-prop-validation testferran < ~/testferran.svn_dump
    45 }}}
    46 
    47 5. Remember to set the owner and permissions accordingly:
    48 {{{
    49 #!sh
    50 sudo chown -R www-data:www-data testferran   
    51 sudo chmod -R 770 testferran
    52 }}}
    53 
    54 6. Deactivate V2 Protocol Advertisement. Go to the config file of /etc/apache2/sites-enabled/tracrepo.conf and add:
    55 {{{
    56 #!sh
    57 SVNAdvertiseV2Protocol Off
    58 }}}
    59 
    60 == Some issues to solve ==
    61 
    62 * What do we do about the users:password from the previous pps etc (svnusers file)?
    63 
    64 * What do we do with all other repositories?: I think pretty much all of them must be migrated
    65 
    66 * /var/svn/svnaccess file dictates who can access what in the several repositories that exist in the old server. At the moment, the users and groups are hardcoded in the file... but we want to get thisinformation from LDAP!!
    67 
    68 Once we get the users&groups information from LDAP, we can copy&paste&adapt the same permissions that were using before.
     1More about subversion migration here: wiki:IT/Migration/Subversion