Omit Downloaded Files With AzCopy

I have uploaded some files / folders using Cloudberry Explorer to my Azure container, but now I am going to change Cloudberry for AzCopy.

I need to omit these downloaded files. I don't know if this can be done with the AzCopy parameter. the files to be uploaded are stored on the server, so it is impossible to do it manually due to thousands of thousands of files / folders.

early

+3


source to share


2 answers


If the files uploaded by another tool have a different naming convention with the new ones, you can use the / pattern option to upload only the new files.

eg. old files have a naming convention like "abcxxxx", new files have a naming convention like "xyzxxx", then please specify / Pattern: xyz * to copy only the new files.

Or use the / xo option (exclude old files) to copy only new files, note that AzCopy will compare the modification times of local files with the "last modified time" of the destination droplets when you specified the / xo and / xn options, please make sure that the downloaded old files "The last modified time is the same or newer than the time of their local copy, otherwise the old files will be downloaded again when you specify the / xo option. You can use the / MT option to set the" Last Modified Time "as well as the change time of local copies at boot time.



See http://aka.ms/azcopy for details

thank

+2


source


Use the command /XO

as a team. It won't copy / replace old files. Example command



AzCopy / Source: C: \ myfolder / Dest: https://myaccount.blob.core.windows.net/mycontainer / DestKey: key / XO

+1


source







All Articles