I tried the -X
switch on zip
, but that did not save the date created attribute. I can get it using this method. When a file is added to a zip archive using 7-Zip, it preserves the date created and date accessed attributes. I would like to do the same on Linux and then extract my files on Windows, while preserving the date created.
Asked
Active
Viewed 2,159 times
8

NobleUplift
- 381
1 Answers
1
You could safe the times in a separate file:
(cd /path/to/ntfs/fs && getfattr -n system.ntfs_times -R .) > times
And to restore the times:
(cd /path/to/ntfs/fs && setfattr --recover=-) < times

Stéphane Chazelas
- 544,893
-X
switch either. I think it's to include/exclude the extended attributes related to ACL. – slm Sep 01 '13 at 22:10zip
was7z
, I'll go install it and try again. I added a link to my first question where I can now get the date created for NTFS-3G and it does work. The files are definitely on an NTFS-3G partition (shows them as root:root with 777 permissions). – NobleUplift Sep 02 '13 at 00:42