azure - azcopy - remote server returned 403 forbidden -


i have several azure accounts. want copy big blog (250gb vhd) 1 account account, without downloading , uploading to/from local machine.

i tried using microsoft utility azcopy (keys replaced x's):

azcopy https://accountfrom.blob.core.windows.net/neo4j/neo4j-250gb.db.vhd https://accountto.blob.core.windows.net/neo4j/neo4j-250gb.db.vhd /destkey: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx /sourcekey:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

but gives me error message: error parsing destination location remote server returned error: (403) forbidden.

i tested keys , accounts opening accounts in cloudberry. got urls cloudberry well, think got right well.

what cause of 403?

azcopy command line pattern "azcopy [source] [dest] [file pattern] [options]", the [source] treated folder (if copy local folder) or virtual directory (if copied blob), is, azcopy copy files under source folder/virtual directory.

so in command line, azcopy try find virual directory equal 'xxxx.core.windows.net/neo4j/neo4j-250gb.db.vhd', know not virual directory file.

to copy single file blob, can try below command [file pattern] , option /s.

azcopy accountfrom.blob.core.windows.net/neo4j/ accountto.blob.core.windows.net/neo4j/ /sourcekey:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx /destkey:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx neo4j-250gb.db.vhd /s 

attention, file pattern different between 'copy blob' , 'copy local folder'. when copy blob, file pattern treat prefix, , when copying local, file pattern general file system file pattern.

e.g. can use file pattern ab* when copy local specify files start 'ab', when copy blob, can specify prefix 'ab'.

for how use option /s, please go http://blogs.msdn.com/b/windowsazurestorage/archive/2012/12/03/azcopy-uploading-downloading-files-for-windows-azure-blobs.aspx

for error '403 forbidden', not related command line pattern used, wrong key or account.

the last not least, can latest azcopy @ aka.ms/azcopy


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -