Do any archive utilities exist that can preserve the date created file attribute on NTFS-3G

file-copyfilesntfsntfs-3gzip

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.

Best 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
Related Question