Changes between Version 6 and Version 7 of transfer_site_between_servers
- Timestamp:
- Apr 19, 2013, 9:00:15 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
transfer_site_between_servers
v6 v7 102 102 == Copy data from the current to the new host == 103 103 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): 104 Next, copy the data from the current host to the new host. 105 106 Start by logging into the new host and granting root access to the current host (you will delete this access when you are done). 105 107 106 108 {{{ 107 ssh -A root@current.host.org109 ssh root@NEW.MOSH 108 110 }}} 109 111 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:112 Edit /root/.monkeysphere/authorized_user_ids, add: 111 113 112 114 {{{ 113 /usr/local/share/red/node/sbin/copy-data-to-new-host new.host.org /home/members/mayfirst/sites/mayfirst.org 115 root@CURRENT.MOSH 116 }}} 117 118 Run: 119 {{{ 120 monkeysphere-authentication update-users root 121 }}} 122 123 Now, log into the current host as root: 124 125 {{{ 126 ssh -A root@CURRENT.MOSH 127 }}} 128 129 Ensure you can access the new mosh: 130 131 {{{ 132 ssh root@NEW.MOSH 133 }}} 134 135 Then, 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 114 139 }}} 115 140 … … 132 157 Once 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: 133 158 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 139 161 140 This script will manually remove any databases associated with the hosting order, remove any crontabs, remove the hosting order directory.141