question

$$ANON_USER$$ avatar image
0 Votes"
$$ANON_USER$$ asked $$ANON_USER$$ commented

I'm trying to copy all containers from BackBlaze B2 to Azure Blob with azcopy and having errors. Followed microsoft docs. What I'm doing wrong?



I tried following Copy data from Amazon S3 to Azure Storage by using AzCopy | Microsoft Docs


As said on S3 Compatible API (backblaze.com

Access Key ID and Secret Access Key
For the purposes of terminology, the Application Key and Application Key ID are the equivalent of the Secret Access Key and Access Key ID respectively. For more information about App Keys, please see our documentation here.


So I got AWS_ACCESS_KEY_ID=<keyID> and AWS_SECRET_ACCESS_KEY=<applicationKey> from BackBlaze B2 > Account > App Keys > Add a New Application Key and set as environmental variables:

 set AWS_ACCESS_KEY_ID=#########
 set AWS_SECRET_ACCESS_KEY=##########

Finally:

 azcopy copy 'https://s3.us-west-002.backblazeb2.com' 'https://<myaccount>.blob.core.windows.net/<container>' --recursive=true
 or
 azcopy copy "https://s3.us-west-002.backblazeb2.com" "https://<myaccount>.blob.core.windows.net/<container>" --recursive=true

Both got same errors:

 INFO: Scanning...
 INFO: Authenticating to destination using Azure AD
 INFO: Any empty folders will not be processed, because source and/or destination doesn't have full folder support
    
 failed to perform copy command due to error: cannot start job due to error: cannot scan the path \\?\C:\WINDOWS\system32\https:\s3.us-west-002.backblazeb2.com, please verify that it is a valid.

What I'm doing wrong?
Why when using "azcopy copy 'https://s3.us-west-002.backblazeb2.com'https://<myaccount>.blob.core.windows.net/<container>;' --recursive=true" or "azcopy copy "https://s3.us-west-002.backblazeb2.com" "https://<myaccount>.blob.core.windows.net/<container>;" --recursive=true" it parses the path "\\?\C:\WINDOWS\system32\https:\s3.us-west-002.backblazeb2.com"?







azure-storage-accountsazure-blob-storageazure-migrate
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ManuPhilip avatar image
0 Votes"
ManuPhilip answered $$ANON_USER$$ commented

If you're using a Windows Command Shell (cmd.exe), enclose path arguments with double quotes ("") instead of single quotes (''). See the reference here: storage-use-azcopy-s3




--please don't forget to upvote and Accept as answer if the reply is helpful--

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

This happen either with " in CMD or ' in PowerShell

Edit: Also the same thing happens on Linux, so it isn't a problem with " or '

0 Votes 0 ·