Restoring file properties but not the complete files, from backup
Posted
by
Jon
on Super User
See other posts from Super User
or by Jon
Published on 2014-04-23T19:43:34Z
Indexed on
2014/05/27
21:40 UTC
Read the original article
Hit count: 237
While copying data from my old storage on a Linux computer to the new (linux-based) NAS, I accidentially failed with getting the properties (most important: the modify dates) along to the new location. I also continued to use/modify the files at the new location and hence, cannot just copy it all over again.
What I would like to do is a diff between files in the old vs. the new storage, and for those being identical, restore the properties from Linux storage to the NAS storage files.
Is there a clever way such as a script or a tool to do this? I could either run it on the Linux box or in worst case from a remote Windows computer.
Grateful for any suggestions. /Jon
© Super User or respective owner