Changes between Version 4 and Version 5 of transfer_site_between_servers


Ignore:
Timestamp:
Oct 21, 2009, 1:20:52 PM (15 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • transfer_site_between_servers

    v4 v5  
    1919 * Execute the script (below is a sample transcript)
    2020{{{
    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
     210 harry:~$ cd /usr/local/share/red/ui/sbin/
     220 harry:~$ ./transfer-red-items-to-new-host
     23Please enter the domain name of the hosting order to move? apen.ourpowerbase.net
     24Hosting Order ID: 1000117
     25Member: Progressive Tech
     26Current host: julia.mayfirst.org
     27Please enter the full domain name of the new host. ella.mayfirst.org
     28Crank down time to live for DNS to 300 seconds? [Yn] y
    2729Cranking down time to live for DNS to 300 seconds
    2830Pseudo-terminal will not be allocated because stdin is not a terminal.
    29 DNS record updated for ibew25.org
     31DNS record updated for apen.ourpowerbase.net
    3032Pseudo-terminal will not be allocated because stdin is not a terminal.
    31 DNS record updated for www.ibew25.org
     33DNS record updated for www.apen.ourpowerbase.net
    3234Pseudo-terminal will not be allocated because stdin is not a terminal.
    33 DNS record updated for mail.ibew25.org
     35DNS record updated for mail.apen.ourpowerbase.net
    3436Pseudo-terminal will not be allocated because stdin is not a terminal.
    3537DNS record updated for ibew25.mayfirst.org
    3638Pseudo-terminal will not be allocated because stdin is not a terminal.
    37 DNS record updated for ibew25.org
     39DNS record updated for apen.ourpowerbase.net
    3840Pseudo-terminal will not be allocated because stdin is not a terminal.
    39 DNS record updated for advantage.ibew25.org
     41DNS record updated for advantage.apen.ourpowerbase.net
     42Create new hosting order? [Yn]
    4043Creating new hosting order
    41 New hosting order created (700)
     44New hosting order created (1000145)
     45Using temp hosting order id: 1000145
     46Transfer relevant red items to new host (1000145)? [Yn]
    4247Moving red_items to newly created hosting order and setting as transfer-limbo
    4348Done
    44 Updating hosting order with new host (jones.mayfirst.org)
     49Update old hosting order with new host value? [Yn]
     50Updating hosting order with new host (ella.mayfirst.org)
     51Create new red_items on new host? [Yn]
    4552Making duplicate red_items on new host
    46 Working on item: 11206
     53Would you like to validate new red items? [Yn]
     54Working on item: 23103 (User Account)
     55validate'd
     56Working on item: 23104 (Server Access)
     57You can only specify a user account that exists.
     58Errors on validation:
     59Working on item: 23105 (Web Configuration)
     60You must specify a user account that exists. You entered: opbapen.
     61Errors on validation:
     62Working on item: 23301 (Email Address)
     63You must either specify a valid email address or a user account that exists. You entered: opbapen.
     64Errors on validation:
     65Working on item: 23384 (Web Configuration)
     66You must specify a user account that exists. You entered: opbapen.
     67Errors on validation:
     68Would you like to commit new red items? [Yn]
     69Working on item: 23103 (User Account)
    4770Pseudo-terminal will not be allocated because stdin is not a terminal.
    48 Committed: 14596
    49 Working on item: 11207
     71commit'd: 23822
     72Working on item: 23104 (Server Access)
    5073Pseudo-terminal will not be allocated because stdin is not a terminal.
    51 Committed: 14597
    52 Working on item: 11208
     74commit'd: 23823
     75Working on item: 23105 (Web Configuration)
    5376Pseudo-terminal will not be allocated because stdin is not a terminal.
    54 Committed: 14598
    55 Working on item: 11291
     77Warning: DocumentRoot [/home/members/progressivetech/sites/apen.ourpowerbase.net/include/nonhttps] does not exist
     78commit'd: 23824
     79Working on item: 23301 (Email Address)
    5680Pseudo-terminal will not be allocated because stdin is not a terminal.
    57 Committed: 14599
    58 0 harry:/usr/local/share/red/scripts$
     81commit'd: 23825
     82Working on item: 23384 (Web Configuration)
     83Pseudo-terminal will not be allocated because stdin is not a terminal.
     84commit'd: 23826
     850 harry:/usr/local/share/red/ui/sbin$
    5986}}}
     87
     88Notice 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.
    6089
    6190This 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.
     
    79108}}}
    80109
    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:
     110Then, 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:
    82111
    83112{{{
    84 /usr/local/share/red/scripts/copy-data-to-new-host new.host.org /home/members/mayfirst/sites/mayfirst.org
     113/usr/local/share/red/node/sbin/copy-data-to-new-host new.host.org /home/members/mayfirst/sites/mayfirst.org
    85114}}}
    86115
     
    106135 * Login to the old host and run
    107136{{{
    108 cleanly-remove-host /path/to/host
     137/usr/local/share/red/node/sbin/cleanly-remove-host /path/to/host
    109138}}}
    110139