#1057892 "rsync -a" doesn't set the modification date

Package:
rsync
Source:
rsync
Description:
fast, versatile, remote (and local) file-copying tool
Submitter:
Harald Dunkel
Date:
2023-12-10 14:15:03 UTC
Severity:
normal
#1057892#5
Date:
2023-12-10 10:23:43 UTC
From:
To:
If I use

    rsync -SHa datafile usbdisk/

to archive a file on exfat (with destdir mounted as

    /dev/sdd2 /usbdisk exfat rw,nosuid,nodev,noexec,noatime,uid=1000,gid=1000,fmask=0022,dmask=0022,iocharset=utf8,errors=remount-ro 0 0

), then the mtime is not preserved, if the group ID of datafile is 100.
Error message is something like

    rsync: [receiver] chgrp "/usbdisk/datafile" failed: Operation not permitted (1)

If I change the group ID of the source datafile to 1000, the the mtime is set
correctly in the destination directory.

This is unexpected. Setting UID and GID should be orthogonal to setting the
mtime.


Regards

Harri

#1057892#10
Date:
2023-12-10 13:56:16 UTC
From:
To:
When an error occurs when processing a file, the file is not processed
further to prevent an escalation of errors.

I recommend using --chown 1000:1000 after the -a in this case to prevent
this error.

I would also strongly recommend removing -SH as I believe exfat does not
support sparse files nor hard links.


Regards,
Paul