azure-storage-azcopy: `--include-after` Does Not Appear to Work As Expected

Which version of the AzCopy was used?

10.23.0

Which platform are you using? (ex: Windows, Mac, Linux)

Windows

What command did you run?

azcopy copy $from $to --recursive --include-after $Starting

What problem was encountered?`

I am running the above command and it’s copying every file in the container, seemingly ignoring the --include-after flag. According to the documentation this field is for modified files, but what about files that have not been modified? This is not clear. I would like to be able to copy only files created after the provided date.

How can we reproduce the problem in the simplest way?

Hopefully by running the above with your own variables set.

Have you found a mitigation/solution?

Not yet, reporting here to seek options.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 31 (15 by maintainers)

Most upvoted comments

I figured out my issue here @siminsavani-msft and it’s making me do a total 🤦‍♂️🤦‍♂️🤦‍♂️

The files I currently have were previously copied from another production Azure Storage account, which was the previous account used for my production environment. I used the same script and process, and I recall everything working as expected.

As I copied the previous storage environment into the new one, I am now just realizing that all the files have their created date set to when I copied them and not their original created dates from the previous storage account. 😞

So, this is why it’s not working for me anymore. I really wish I had noticed this earlier! Apologies for the disruption and friction encountered here in assisting me to get to this point.

However, I do have two thoughts:

  1. The logs should definitely emit the created/modified time when --include-after is specified (or maybe every time)
  2. There should be a way to preserve created/modified times from the source. If there is a way to do so already that would be great to know, otherwise, we should create a feature request as this is an important quality in my case.

Thank you for any consideration!

Indeed @siminsavani-msft I had two executions, one with the timezone and then one two days after that without the timezone. The one for 9-16 was the 2nd attempt with a shorter timestamp to rule out any potential parsing issues with this data.

Hi @siminsavani-msft I have sent you a link to download at the provided address. Please let me know if there is any further information I can provide and I will assist you.