Changes between Version 4 and Version 5 of transfer_site_between_servers
- Timestamp:
- Oct 21, 2009, 1:20:52 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
transfer_site_between_servers
v4 v5 19 19 * Execute the script (below is a sample transcript) 20 20 {{{ 21 0 harry:/usr/local/share/red/scripts$ ./transfer-red-items-to-new-host 22 Please enter the domain name of the hosting order to move? ibew25.org 23 Hosting Order ID: 541 24 Member: IBEW Local 25 25 Current host: malcolm.mayfirst.org 26 Please enter the full domain name of the new host. jones.mayfirst.org 21 0 harry:~$ cd /usr/local/share/red/ui/sbin/ 22 0 harry:~$ ./transfer-red-items-to-new-host 23 Please enter the domain name of the hosting order to move? apen.ourpowerbase.net 24 Hosting Order ID: 1000117 25 Member: Progressive Tech 26 Current host: julia.mayfirst.org 27 Please enter the full domain name of the new host. ella.mayfirst.org 28 Crank down time to live for DNS to 300 seconds? [Yn] y 27 29 Cranking down time to live for DNS to 300 seconds 28 30 Pseudo-terminal will not be allocated because stdin is not a terminal. 29 DNS record updated for ibew25.org31 DNS record updated for apen.ourpowerbase.net 30 32 Pseudo-terminal will not be allocated because stdin is not a terminal. 31 DNS record updated for www. ibew25.org33 DNS record updated for www.apen.ourpowerbase.net 32 34 Pseudo-terminal will not be allocated because stdin is not a terminal. 33 DNS record updated for mail. ibew25.org35 DNS record updated for mail.apen.ourpowerbase.net 34 36 Pseudo-terminal will not be allocated because stdin is not a terminal. 35 37 DNS record updated for ibew25.mayfirst.org 36 38 Pseudo-terminal will not be allocated because stdin is not a terminal. 37 DNS record updated for ibew25.org39 DNS record updated for apen.ourpowerbase.net 38 40 Pseudo-terminal will not be allocated because stdin is not a terminal. 39 DNS record updated for advantage.ibew25.org 41 DNS record updated for advantage.apen.ourpowerbase.net 42 Create new hosting order? [Yn] 40 43 Creating new hosting order 41 New hosting order created (700) 44 New hosting order created (1000145) 45 Using temp hosting order id: 1000145 46 Transfer relevant red items to new host (1000145)? [Yn] 42 47 Moving red_items to newly created hosting order and setting as transfer-limbo 43 48 Done 44 Updating hosting order with new host (jones.mayfirst.org) 49 Update old hosting order with new host value? [Yn] 50 Updating hosting order with new host (ella.mayfirst.org) 51 Create new red_items on new host? [Yn] 45 52 Making duplicate red_items on new host 46 Working on item: 11206 53 Would you like to validate new red items? [Yn] 54 Working on item: 23103 (User Account) 55 validate'd 56 Working on item: 23104 (Server Access) 57 You can only specify a user account that exists. 58 Errors on validation: 59 Working on item: 23105 (Web Configuration) 60 You must specify a user account that exists. You entered: opbapen. 61 Errors on validation: 62 Working on item: 23301 (Email Address) 63 You must either specify a valid email address or a user account that exists. You entered: opbapen. 64 Errors on validation: 65 Working on item: 23384 (Web Configuration) 66 You must specify a user account that exists. You entered: opbapen. 67 Errors on validation: 68 Would you like to commit new red items? [Yn] 69 Working on item: 23103 (User Account) 47 70 Pseudo-terminal will not be allocated because stdin is not a terminal. 48 Committed: 14596 49 Working on item: 1120771 commit'd: 23822 72 Working on item: 23104 (Server Access) 50 73 Pseudo-terminal will not be allocated because stdin is not a terminal. 51 Committed: 14597 52 Working on item: 1120874 commit'd: 23823 75 Working on item: 23105 (Web Configuration) 53 76 Pseudo-terminal will not be allocated because stdin is not a terminal. 54 Committed: 14598 55 Working on item: 11291 77 Warning: DocumentRoot [/home/members/progressivetech/sites/apen.ourpowerbase.net/include/nonhttps] does not exist 78 commit'd: 23824 79 Working on item: 23301 (Email Address) 56 80 Pseudo-terminal will not be allocated because stdin is not a terminal. 57 Committed: 14599 58 0 harry:/usr/local/share/red/scripts$ 81 commit'd: 23825 82 Working on item: 23384 (Web Configuration) 83 Pseudo-terminal will not be allocated because stdin is not a terminal. 84 commit'd: 23826 85 0 harry:/usr/local/share/red/ui/sbin$ 59 86 }}} 87 88 Notice the validation errors! You will need to read those carefully. When running just validation, you will get errors about how certain items did not validate because the related user account doesn't exist. That's normal because when validating, you don't actually create the user account. In addition, you might get errors when committing (such as the one above) that reports how a directory doesn't exist yet. 60 89 61 90 This script will ask you for the domain name of the hosting order you want to transfer and the name of the new host you want to transfer it to. … … 79 108 }}} 80 109 81 Then, run the {{{ 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: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: 82 111 83 112 {{{ 84 /usr/local/share/red/ scripts/copy-data-to-new-host new.host.org /home/members/mayfirst/sites/mayfirst.org113 /usr/local/share/red/node/sbin/copy-data-to-new-host new.host.org /home/members/mayfirst/sites/mayfirst.org 85 114 }}} 86 115 … … 106 135 * Login to the old host and run 107 136 {{{ 108 cleanly-remove-host /path/to/host137 /usr/local/share/red/node/sbin/cleanly-remove-host /path/to/host 109 138 }}} 110 139