批量更改修改/创建日期?

发布于 2024-10-10 00:21:32 字数 182 浏览 0 评论 0原文

我最近为我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

许久 2024-10-17 00:21:32

你没有提到NAS型号吗?
你没有提到HDD文件系统吗?
文件和文件夹都会受到影响吗?通常我只是在文件夹中看到它。

我会研究:

  • Robocopy (windows CLI)
  • Xcopy (windows CLI)
  • Total Commander (windows GUI)

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 (windows CLI)
  • Xcopy (windows CLI)
  • Total Commander (windows GUI)

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文