Summary: When unpacking a tar archive onto a NTFS filesystem mounted
using the NTFS-3g driver, file modification times are not restored from
the archive.
O/S Opensuse Linux Leap 15.1
Tar: tar (GNU tar) 1.30
Description/how to reproduce.
1. mount NTFS filesystem at $MNT and choose $SOME_DIRECTORY (Mine was
"spglib")
2. Test file permissions capability of mounted FS
$ mkdir $MNT/{gnutar,star,rsync}
$ ls -l $SOME_DIRECTORY
drwxrwxrwx 1 kr users 168 May 29 2019 spglib
$ rsync -a spglib $MNT/rsync
$ tar cpf - spglib | tar xpf - -C $MNT/gnutar
$ tar cpf - spglib | star xpf - -C $MNT/star
$ ls -l $SOME_DIRECTORY/{rsync,gnutar,star}
/run/media/kr/Keiths_Backup/gnutar:
total 4
drwxrwxrwx 1 kr users 4096 Apr 22 10:42 spglib
/run/media/kr/Keiths_Backup/rsync:
total 0
drwxrwxrwx 1 kr users 168 May 29 2019 spglib
/run/media/kr/Keiths_Backup/star:
total 4
drwxrwxrwx 1 kr users 4096 May 29 2019 spglib
The mtime of all files and subdirectories is also set to the extraction
time, and not the archive time. N.B. the "star" implementation
correctly extracts the mtime.
Keith Refson