It could store that information as metadata, like it does with the timestamps; and then restore if supported by the destination file system when copying/syncing files back.
It could store that information as metadata, like it does with the timestamps; and then restore if supported by the destination file system when copying/syncing files back.