Quantcast
Channel: MSDN Blogs
Viewing all articles
Browse latest Browse all 29128

AzCopy and the Azure Storage Emulator

$
0
0

AzCopy is now part of the Azure SDK and can copy files to and from Azure Storage.  I couldn't find any examples of it copying to the Storage Emulator but it works.  Here is an example batch file I use:

set Destination=http://127.0.0.1:10000/devstoreaccount1/
set DestinationKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==

set AzCopy="%ProgramFiles(x86)%\Microsoft SDKs\Windows Azure\AzCopy\AzCopy.exe"

%AzCopy% FooFolder %Destination%FooContainer /S /BlobType:block /Y /DestKey:%DestinationKey%
%AzCopy% C:\BarFolder %Destination%BarContainer /S /BlobType:block /Y /DestKey:%DestinationKey%

First script copies all files and subfolders from FooFolder into FooContainer then it copies all files and subfolders from C:\BarFolder to BarContainer.


Viewing all articles
Browse latest Browse all 29128

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>