Changes between Version 6 and Version 7 of transfer_site_between_servers


Ignore:
Timestamp:
Apr 19, 2013, 5:00:15 PM (6 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • transfer_site_between_servers

    v6 v7  
    102102 == Copy data from the current to the new host ==
    103103
    104 Next, copy the data from the current host to the new host by logging into the current host as root (with authentication credentials being forwarded):
     104Next, copy the data from the current host to the new host.
     105
     106Start by logging into the new host and granting root access to the current host (you will delete this access when you are done).
    105107
    106108{{{
    107 ssh -A root@current.host.org
     109ssh root@NEW.MOSH
    108110}}}
    109111
    110 Then, run the {{{/usr/local/share/red/node/sbin/copy-data-to-new-host}}} script, passing the new host as the first argument and the path to the hosting order as the second. For example:
     112Edit /root/.monkeysphere/authorized_user_ids, add:
    111113
    112114{{{
    113 /usr/local/share/red/node/sbin/copy-data-to-new-host new.host.org /home/members/mayfirst/sites/mayfirst.org
     115root@CURRENT.MOSH
     116}}}
     117
     118Run:
     119{{{
     120monkeysphere-authentication update-users root
     121}}}
     122
     123Now, log into the current host as root:
     124
     125{{{
     126ssh -A root@CURRENT.MOSH
     127}}}
     128
     129Ensure you can access the new mosh:
     130
     131{{{
     132ssh root@NEW.MOSH
     133}}}
     134
     135Then, from the CURRENT.MOSH, run the {{{/usr/local/share/red/node/sbin/copy-data-to-new-host}}} script, passing the new host as the first argument and the path to the hosting order as the second. For example:
     136
     137{{{
     138/usr/local/share/red/node/sbin/copy-data-to-new-host NEW.MOSH /home/members/mayfirst/sites/mayfirst.org
    114139}}}
    115140
     
    132157Once the transfer has happened, and the site is confirmed to be working and completely intact, you will need to remove the transfer-limbo hosting order:
    133158
    134  * From seso, search for the hosting order and click delete. This process will remove all associated red items
    135  * Login to the old host and run
    136 {{{
    137 /usr/local/share/red/node/sbin/cleanly-remove-host /path/to/host
    138 }}}
     159 * From the control panel, find the control panel in the state "transfer-limbo". Delete it.
     160 
    139161
    140 This script will manually remove any databases associated with the hosting order, remove any crontabs, remove the hosting order directory.
    141