Changeset 1287
- Timestamp:
- 03/19/10 15:45:51 (23 months ago)
- Files:
-
- 1 modified
-
trunk/tools/datacenter/vzImport.sh (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/datacenter/vzImport.sh
r1286 r1287 11 11 # This is a very basic script, written to perform 12 12 # 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. 13 16 # 14 17 … … 44 47 #uVeth=0; default is 0 so we can even omit this from insert query. 45 48 #uIPv4= from select Must preload tIP with the clone range from source unxsVZ db. 46 echo $cIP;49 echo cIP=$cIP; 47 50 #uOSTemplate from select. Must preload tOSTemplate from mysqldump of source unxsVZ db. 48 51 echo cOSTemplate=$cOSTemplate; … … 62 65 echo ""; 63 66 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; 66 69 done 67 70
