使用AZCOPY进行棘手的上传-比X天还早的文件 [英] Tricky upload with AZCOPY - older file than X days
问题描述
对于我公司中的一个项目,我们需要从驱动器Z:\上载天蓝色存储中的文件,仅上传30天之前创建的文件夹.
通常,我使用robocopy并使用/minage:30参数,该参数将文件复制到另一个驱动器W:\中,然后azcopy直接在azure上移动了W:\中的所有内容.
现在我们有大量数据,我们无法将文件移动到另一个驱动器中.
我要强调的是,我们应该获得包含旧文件夹路径的旧文件夹列表.
然后,azcopy使用该文件列表作为在存储中移动文件的源.
有可能要做的事情吗?有任何想法吗?有人可以帮我吗?
非常感谢
Mizter
文件/D 08/26/2018/S/M * .txt/C"cmd/c echo @path" > list12.txt用于Az复制
AzCopy/Source:C:\ myfolder/Dest:https://myaccount.blob.core.windows.net/mycontainer/DestKey:key/S在Windows上使用AzCopy传输数据.
Hi guys,
for a project in my company we need to upload files on a azure storage from a drive Z:\ only the folder that has been created 30 days before.
Usually i worked with robocopy with the parameter /minage:30 that copied files in another drive W:\ and then azcopy moved all the contents in W:\ directly on azure.
Now we have a large amount of datas and we cannot move the files in another drive.
What I tought is that we should get a list of the older folders that populate a .txt files with the path of the older folder.
Then, azcopy use that list of files as a source for move the files on the storage.
Is something that is possibile to do? Any ideas? Someone can help me with this?
Thanks a lot
Mizter
To get the list of txt files from the past "X days" with path, I would suggest you to try the below cmdlets:
forfiles /D 08/26/2018 /S /M *.txt /C "cmd /c echo @path" >list12.txtFor Az copy
AzCopy /Source:C:\myfolder /Dest:https://myaccount.blob.core.windows.net/mycontainer /DestKey:key /SFor more information, suggest you to refer Transfer data with the AzCopy on Windows.
Let me know if there are still any additional issues I can help with.-----------------------------------------------------------------------------------------------
If this answer was helpful, click "Mark as Answer" or "Up-Vote". To provide additional feedback on your forum experience, click here
这篇关于使用AZCOPY进行棘手的上传-比X天还早的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!