Changeset 1287

Show
Ignore:
Timestamp:
03/19/10 15:45:51 (23 months ago)
Author:
Gary
Message:

unxsVZ datacenter/vzImport.sh getting close to actual testing.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tools/datacenter/vzImport.sh

    r1286 r1287  
    1111#       This is a very basic script, written to perform 
    1212#       a specific migration task. 
     13#       The migration is from another unxsVZ system to a new one. 
     14#       The first step was faking the new node on the source system 
     15#       and running clone wizard after setting up the ssh stuff. 
    1316#        
    1417 
     
    4447        #uVeth=0; default is 0 so we can even omit this from insert query. 
    4548        #uIPv4= from select Must preload tIP with the clone range from source unxsVZ db. 
    46         echo $cIP; 
     49        echo cIP=$cIP; 
    4750        #uOSTemplate from select. Must preload tOSTemplate from mysqldump of source unxsVZ db. 
    4851        echo cOSTemplate=$cOSTemplate; 
     
    6265        echo ""; 
    6366         
    64 #cQuery="INSERT INTO tContainer SET uContainer=$uContainer,cLabel='$cLabel',uIPv4=(SELECT uIP FROM tIP WHERE cLabel='$cIP' AND uAvailable=1),uOSTemplate=(SELECT uOSTemplate FROM tOSTemplate WHERE cLabel='$cOSTemplate'),uConfig=(SELECT uConfig FROM tConfig WHERE cLabel='$cConfig',uNameserver=$uNameserver,uSearchdomain=$uSearchdomain,uDatacenter=$uDatacenter,uNode=$uNode,uStatus=$uStatus,uOwner=$uOwner,uCreatedBy=$uCreatedBy,uCreatedDate=UNIX_TIMESTAMP(NOW())"; 
    65 #       echo $cQuery; 
     67        #cQuery="INSERT INTO tContainer SET uContainer=$uContainer,cLabel='$cLabel',uIPv4=(SELECT uIP FROM tIP WHERE cLabel='$cIP' AND uAvailable=1),uOSTemplate=(SELECT uOSTemplate FROM tOSTemplate WHERE cLabel='$cOSTemplate'),uConfig=(SELECT uConfig FROM tConfig WHERE cLabel='$cConfig',uNameserver=$uNameserver,uSearchdomain=$uSearchdomain,uDatacenter=$uDatacenter,uNode=$uNode,uStatus=$uStatus,uOwner=$uOwner,uCreatedBy=$uCreatedBy,uCreatedDate=UNIX_TIMESTAMP(NOW())"; 
     68        #echo $cQuery; 
    6669done 
    6770