azure의 가상서버는 백업을 어찌받을까요

왕머슴   
   조회 533049   추천 0    

azure의 가상서버는 백업을 어찌받을까요


azure에 centos7깔고 겁나 세팅했는디

다른나라에깔았네요

우리나라쪽으로 옮기려 했더니. 


방법을 모르겠네요

어렵다. azure

짧은글 일수록 신중하게.
임정구 2016-12
우선 VHD를 목적지로 옮기셔야 합니다.
Azcopy라는 툴을 쓰시면 됩니다.(http://aka.ms/downloadazcopy)
https://azure.microsoft.com/en-us/documentation/articles/storage-use-azcopy/

옮겨진 VHD로 VM을 만드는 방식은 ASM (manage.windowsazure.com) , ARM (portal.azure.com)에 따라서달라집니다.

 ASM은 Azure Portal에서 VHD를 등록하시고 등록된 OS 디스크(Market place에 My Disk에 보이게 됩니다)로 VM을 만드시면 됩니다.
ARM의 경우는 Azure Powershell을 쓰셔야 합니다.

$rgname = "the resource group name of the new VM"
$loc = "the region of the resource group"
$vmsize = "<VM Size>”
$vmname = "specify the name for the new VM"
$vm = New-AzureRmVMConfig -VMName $vmname -VMSize $vmsize;
$vNet = Get-AzureRmVirtualNetwork -ResourceGroupName $rgname
$pip = New-AzureRmPublicIpAddress -ResourceGroupName $rgname -Location $loc -Name “specify a name for the public network” -AllocationMethod Dynamic
$newNic = New-AzureRmNetworkInterface -ResourceGroupName $rgname -subnetid $vNet.Subnets[0].id -Name “specify a name for the network interface” -location $loc -PublicIpAddressId $pip.Id
$nic = Get-AzureRmNetworkInterface -Name "the name of the network interface" -ResourceGroupName $rgname
$nicId = $nic.Id
$vm = Add-AzureRmVMNetworkInterface -VM $vm -Id $nicId
$osDiskName = "specify a name for the new OS disk"
$osDiskVhdUri = "the path of the VHD file that you just copied before"
$vm = Set-AzureRmVMOSDisk -VM $vm -VhdUri $osDiskVhdUri -name $osDiskName -CreateOption attach -Windows
New-AzureRmVM -ResourceGroupName $rgname -Location $loc -VM $vm

다른 설정부분 이름이 중요하지 않으시면 아래 Template를 쓰셔도 됩니다.
https://github.com/Azure/azure-quickstart-templates/tree/master/201-vm-specialized-vhd

그리고 참고로 Azure에서 아직 한국지역을 고르는 옵션이 없는 것 같습니다. 혹시 있으세요?
     
왕머슴 2016-12
어렵네요..

동아시아쪽 Azure에 Centos7.2를 설치 햇는데요.. 이 VM을 제 컴으로 다운 받으려면 어떻게 하나요?

가상 컴퓨터의 DISK 경로는 확인 했습니다.

azcopy명령어로 어떻게 해야 할가요?
          
임정구 2016-12
azcopy는 간단하게 source 위치와 Destination으로 구성됩니다.
azcopy를 설치 하신후 해당 폴더로 command 창에서

AzCopy /Source:<the VHD container path of the source storage account> /SourceKey:<The primary key of the storage account> /Dest:<the container path of the destination storage account>  /Pattern:<the vhd file name> 를 실행하시면 됩니다.

<the VHD container path of the source storage account> : 해당 VM 속성에서 확인하실 수 있습니다. "http://NAME.blob.core.windows.net/vhds/" 의 형식입니다.
<The primary key of the storage account> : Storage account 정보에서 확인하실 수 있습니다.
<the container path of the destination storage account> : 다운 받을 PC 경로 넣으시면 됩니다. "c:\vhd" 이런식으로 쓰시면 됩니다.
<the vhd file name> : vhd 파일 이름 쓰시면 됩니다.
               
왕머슴 2016-12
친절하신 설명 감사함니다

azure의 달인이신듯. 
해보겠습니다
민욱님 2017-01
위의 방법이 힘드시면 해당 Storage Account 에서 Blob 에서 컨테이너-vhd 들어가셔서 vhd 다운받기 하신 다음에 이동하실 Storage Account 에 업로드 하시면 됩니다. 근데 이렇게 옮긴 vhd 를 os 부팅용으로 사용하시려면 Azure Powershell 을 통해 수동 설정해주셔야 합니다.


제목Page 3/3
2015-12   1779937   백메가
2014-05   5255004   정은준1
2023-10   12414   YJMODx영재…
2024-07   3205   YJMODx영재…
2024-07   3981   YJMODx영재…
2023-10   6794   아이디시스템
2024-11   3883   컴퓨터신시야
2024-11   3029   YJMODx영재…
2023-12   3683   YJMODx영재…
2024-01   3932   YJMODx영재…
2023-11   4022   YJMODx영재…
2023-11   4621   YJMODx영재…
2023-11   4742   YJMODx영재…
2023-12   4027   YJMODx영재…
2023-12   4205   YJMODx영재…
2024-05   5955   YJMODx영재…
2024-01   3434   컴퓨터신시야
2024-02   5100   YJMODx영재…
2024-02   4258   YJMODx영재…
03-24   984   YJMODx영재…
2015-12   25359   임진욱
2015-12   27045   허진형ALpha
2015-12   26046   김준연
2015-12   25752   안형곤
2016-01   27312   회원K
2016-01   25204   영업과철학
2016-01   25481   유정호샤콘느
2016-01   26472   캔위드
2016-01   29863   송지만
2016-01   32951   허진형ALpha
2016-02   29943   Qsup
2016-08   35791   에라뇽
2016-08   52829   쌍cpu
2016-09   65946   백만스물하나
2016-11   67305   낙원전자
2017-04   516300   gusanaki
01-07   2700   YJMODx영재…
2023-11   5219   YJMODx영재…
2023-11   14072   YJMODx영재…
2024-03   4582   YJMODx영재…
2024-11   3156   YJMODx영재…
2016-01   30526   izegtob
2016-03   28880   1CPU지창훈
2024-08   5112   YJMODx영재…
2016-01   34437   임진욱
2016-02   31429   Midabo
2016-03   69084   izegtob
2015-12   25543   조재형3
2015-12   30614   회원K
2016-06   51859   DoubleSH
2016-08   45466   백만스물하나
2015-12   26079   회원K
2016-01   30670   MikroTik이진