I am trying to backup a failing hard drive and rsync would be ideal due to the features it has such as progress indicator and ability to stop and resume. The one issue I am having is that while file date modified attribute is preserved the directories get new date attribute. This causes issues as I sort many files by date so I know what was added more recently. Is it possible to preserve directory date modified attribute with rsync:
sudo rsync -avhX --progress --info=progress2 /mnt/failing/ /mnt/new/
-t (included with -a) option preserves the file attributes but does not mention directories. Is there any special requirement for ownership / permissions of the /mnt/new partition to preserve certain attributes successfully?