azurecopy icon indicating copy to clipboard operation
azurecopy copied to clipboard

Copy Azure Blob container to another blob

Open ReveelTeam opened this issue 8 years ago • 3 comments

What are the commands to copy a Azure blob container (private) to another Blob?

ReveelTeam avatar Jul 17 '17 12:07 ReveelTeam

Hi

When you say "to another blob" do you mean another blob container or blob account?

Thanks

Ken

kpfaulkner avatar Jul 17 '17 19:07 kpfaulkner

Ken,

Let me clarify further. I have 2 blob storage account under one subscription. I want to move (or copy and delete source later) the original container in Blob-1 into Blob-2.


From: Ken Faulkner [email protected] Sent: Monday, July 17, 2017 2:04:10 PM To: kpfaulkner/azurecopy Cc: Roop; Author Subject: Re: [kpfaulkner/azurecopy] Copy Azure Blob container to another blob (#28)

Hi

When you say "to another blob" do you mean another blob container or blob account?

Thanks

Ken

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/kpfaulkner/azurecopy/issues/28#issuecomment-315850594, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AbjGeqbtKFWCkrk7MBpEK6wp941VsaQLks5sO7AqgaJpZM4OZ6l6.

ReveelTeam avatar Jul 17 '17 19:07 ReveelTeam

You can provide Azurecopy 2 sets of Azure credentials. One for source and one for target. This can either be done via the config file or via command line arguments.

In the case of command line args, they are:

-sak (source azure key) -tak (target azure key)

Via config file, you'd need to set the values:

and

Then you could issue a command like:

azurecopy -i https://firstaccount.blob.core.windows.net/mycontainer/ -o https://secondaccount.blob.core.windows.net/destcontainer/

kpfaulkner avatar Jul 17 '17 22:07 kpfaulkner