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.
1 Answer
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
-X
switch either. I think it's to include/exclude the extended attributes related to ACL.