kpfaulkner / azurecopy

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

Spaces in file name #14

Closed dpoincelot closed 8 years ago

dpoincelot commented 8 years ago

Hi, When running the copy from AWS to Azure the script breaks when it hits a file name using a space. The space is replaced with a % and as a result, it looks like the command line sees that as a variable command. Any way to escape the spaces with a double percent or to strip out the spaces all together when pushing the file to Azure? Thanks!

at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync[T](RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext) at Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob.StartCopyFromBlob(Uri source, AccessCondition sourceAccessCondition, AccessCondition destAccessCondition, BlobRequestOptions options, OperationContext operationContext) at azurecopy.AzureBlobCopyHandler.StartCopy(String sourceUrl, String DestinationUrl, DestinationBlobType destBlobType) at azurecopycommand.Program.DoNormalCopy() at azurecopycommand.Program.Process() at azurecopycommand.Program.Main(String[] args)

dpoincelot commented 8 years ago

I compiled the 1.3.0 release and was able to get it working.

kpfaulkner commented 8 years ago

I'll look into it.

Ahh just saw your follow up message. Did you do a code change?

On Fri, Aug 26, 2016 at 11:02 PM, dpoincelot notifications@github.com wrote:

Hi, When running the copy from AWS to Azure the script breaks when it hits a file name using a space. The space is replaced with a % and as a result, it looks like the command line sees that as a batch command. Any way to escape the spaces with a double percent or to strip out the spaces all together when pushing the file to Azure? Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kpfaulkner/azurecopy/issues/14, or mute the thread https://github.com/notifications/unsubscribe-auth/AAHGUjrW0IiZv3roAfSn72OpAC2JH6Wwks5qjuPOgaJpZM4JuDeJ .

dpoincelot commented 8 years ago

Hi Ken,

No code change. It just worked with that 1.3 branch. I'm still getting errors after 5 gigs or so with a duplication error. I have 25TB to move, so it may not be possible.

Thanks, Dan

On Fri, Aug 26, 2016 at 9:41 PM, Ken Faulkner notifications@github.com wrote:

I'll look into it.

Ahh just saw your follow up message. Did you do a code change?

On Fri, Aug 26, 2016 at 11:02 PM, dpoincelot notifications@github.com wrote:

Hi, When running the copy from AWS to Azure the script breaks when it hits a file name using a space. The space is replaced with a % and as a result, it looks like the command line sees that as a batch command. Any way to escape the spaces with a double percent or to strip out the spaces all together when pushing the file to Azure? Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kpfaulkner/azurecopy/issues/14, or mute the thread https://github.com/notifications/unsubscribe-auth/ AAHGUjrW0IiZv3roAfSn72OpAC2JH6Wwks5qjuPOgaJpZM4JuDeJ .

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/kpfaulkner/azurecopy/issues/14#issuecomment-242888225, or mute the thread https://github.com/notifications/unsubscribe-auth/ALL0IhNyPa6ThSfT1EqhEFABeSmNxMvzks5qj5XBgaJpZM4JuDeJ .

dpoincelot commented 8 years ago

Hi Ken,

Here is the error I get after copying 5GB of the 25TB. Not sure if you know what this means?

Thanks, Dan

On Sun, Aug 28, 2016 at 11:07 AM, Daniel Poincelot dpoincelot@gmail.com wrote:

Hi Ken,

No code change. It just worked with that 1.3 branch. I'm still getting errors after 5 gigs or so with a duplication error. I have 25TB to move, so it may not be possible.

Thanks, Dan

On Fri, Aug 26, 2016 at 9:41 PM, Ken Faulkner notifications@github.com wrote:

I'll look into it.

Ahh just saw your follow up message. Did you do a code change?

On Fri, Aug 26, 2016 at 11:02 PM, dpoincelot notifications@github.com wrote:

Hi, When running the copy from AWS to Azure the script breaks when it hits a file name using a space. The space is replaced with a % and as a result, it looks like the command line sees that as a batch command. Any way to escape the spaces with a double percent or to strip out the spaces all together when pushing the file to Azure? Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kpfaulkner/azurecopy/issues/14, or mute the thread https://github.com/notifications/unsubscribe-auth/AAHGUjrW0 IiZv3roAfSn72OpAC2JH6Wwks5qjuPOgaJpZM4JuDeJ .

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/kpfaulkner/azurecopy/issues/14#issuecomment-242888225, or mute the thread https://github.com/notifications/unsubscribe-auth/ALL0IhNyPa6ThSfT1EqhEFABeSmNxMvzks5qj5XBgaJpZM4JuDeJ .