kpfaulkner / azurecopy

copy blobs between azure, s3 and local storage
Apache License 2.0
36 stars 13 forks source link

Copy Azure Blob container to another blob #28

Open ReveelTeam opened 7 years ago

ReveelTeam commented 7 years ago

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

kpfaulkner commented 7 years ago

Hi

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

Thanks

Ken

ReveelTeam commented 7 years ago

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 notifications@github.com 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.

kpfaulkner commented 7 years ago

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/