View previous topic :: View next topic |
Author |
Message |
Kellerkalt n00b
Joined: 22 Dec 2020 Posts: 47
|
Posted: Fri Apr 02, 2021 11:49 am Post subject: This rsync does not support --crtimes (-N) |
|
|
Hi,
Is it possible to enable rsync to preserve create times? I tried with this command:
Code: | sudo rsync -avWN --no-compress /boot/ /tmp/test/ |
But I get this error message:
Code: |
rsync: This rsync does not support --crtimes (-N)
rsync error: syntax or usage error (code 1) at main.c(1746) [client=3.2.3]
|
I don't see anything obvious with a glance at the use flags for rsync.
Code: | equery u rsync
[ Legend : U - final flag setting for installation]
[ : I - package is installed with flag ]
[ Colors : set, unset ]
* Found these USE flags for net-misc/rsync-3.2.3-r2:
U I
+ + acl : Add support for Access Control Lists
+ + cpu_flags_x86_sse2 : Use the SSE2 instruction set
- - examples : Install examples, usually source code
+ + iconv : Enable support for the iconv character set conversion library
- - ipv6 : Add support for IP version 6
- - lz4 : Enable support for lz4 compression (as implemented in app-arch/lz4)
+ + ssl : Add support for SSL/TLS connections (Secure Socket Layer / Transport Layer Security)
- - stunnel : Provide helper scripts for using rsync via >=net-misc/stunnel-4
- - system-zlib : Use system zlib instead of bundled one. This is incompatible with older rsync releases!
+ + xattr : Add support for extended attributes (filesystem-stored metadata)
- - xxhash : Enable dev-libs/xxhash support for hashing
- - zstd : Enable support for ZSTD compression
|
Any assistance would be greatly appreciated. |
|
Back to top |
|
|
sdauth l33t
Joined: 19 Sep 2018 Posts: 652 Location: Ásgarðr
|
|
Back to top |
|
|
Kellerkalt n00b
Joined: 22 Dec 2020 Posts: 47
|
Posted: Fri Apr 02, 2021 12:18 pm Post subject: |
|
|
Thanks sdauth, good find. I didn't even think of a bug and presumed it was a feature that wasn't enabled. I think I'll hold off on the patch and wait for the upstream maintainer. |
|
Back to top |
|
|
sdauth l33t
Joined: 19 Sep 2018 Posts: 652 Location: Ásgarðr
|
Posted: Fri Apr 02, 2021 12:24 pm Post subject: |
|
|
I have the same output on my system :
Code: | rsync: This rsync does not support --crtimes (-N)
rsync error: syntax or usage error (code 1) at main.c(1746) [client=3.2.3] |
So indeed, unless I miss an option somewhere, this seems a rsync issue. I use the same USE flags. |
|
Back to top |
|
|
midnite Guru
Joined: 09 Apr 2006 Posts: 449 Location: Hong Kong
|
Posted: Sun Jan 09, 2022 4:45 pm Post subject: |
|
|
The patch was in 2015. Will there be any fix on Gentoo's rsync soon? _________________ - midnite. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22683
|
Posted: Sun Jan 09, 2022 6:00 pm Post subject: |
|
|
Gentoo follows upstream, except where there is a good reason to deviate. If upstream supports it soon, then yes, Gentoo will support it soon. If upstream refuses to support it, then it is unlikely that the Gentoo maintainers will add it as a local patch. Are you sure you have the same problem? |
|
Back to top |
|
|
midnite Guru
Joined: 09 Apr 2006 Posts: 449 Location: Hong Kong
|
Posted: Sun Jan 09, 2022 6:15 pm Post subject: |
|
|
Yes. With the latest Gentoo. The same error still exists.
Code: | rsync: This rsync does not support --crtimes (-N) |
_________________ - midnite. |
|
Back to top |
|
|
zmedico Developer
Joined: 02 Jan 2004 Posts: 353 Location: California USA
|
Posted: Fri Jun 21, 2024 3:25 am Post subject: |
|
|
It seems this feature is only implemented for macos and cygwin. If you try to build rsync with -DSUPPORT_CRTIMES on linux then it fails with a "Unknown crtimes implementation" error. _________________ Zac |
|
Back to top |
|
|
|