On Sun 10 Dec 2023, Harald Dunkel wrote:

> Package: rsync
> Version: 3.2.7-1
> 
> 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.

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

Reply via email to