批量更改修改/创建日期?
我最近为我的 NAS 购买了新硬盘。这意味着我将从 NAS 复制所有数据,对其进行升级,然后将数据移回。
我已经从 NAS 复制了数据,但每个文件的修改/创建日期都已更改为复制时(今天)。
有没有一种方法,记住我有原始数据,可以批量更新复制文件上的修改/创建日期,而不必再次复制它们(我们正在讨论 1 TB 的数据)?
I recently bought new hard drives for my NAS. This means that I'm copying all the data off the NAS, upgrading it, and then moving the data back.
I've gotten as far as copying the data from the NAS, but every file's modified/created date has been changed to when it was copied (today).
Is there a way, keeping in mind that I have the original data, to batch update the modified/created dates on the copied files without having to copy them over again (we're talking over a terabyte of data)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你没有提到NAS型号吗?
你没有提到HDD文件系统吗?
文件和文件夹都会受到影响吗?通常我只是在文件夹中看到它。
我会研究:
Robocopy 可以用文件和权限做很多奇特的事情。
在我的 Synology 上,使用盒子上的 web-api 以及通过 USB 连接的旧 HDD 来完成此操作非常顺利。
You do not mention the NAS model?
You do not mention the HDD filesystem?
Is it both files and folders that are effected? Normally I just see it with folders.
I would look into:
Robocopy can do a lot of fancy stuff with files and permissions.
On my Synology it went quite smooth doing this with the web-api on the box, with the OLD HDD attached with USB.