Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
This rsync does not support --crtimes (-N)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Kellerkalt
n00b
n00b


Joined: 22 Dec 2020
Posts: 47

PostPosted: Fri Apr 02, 2021 11:49 am    Post subject: This rsync does not support --crtimes (-N) Reply with quote

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
View user's profile Send private message
sdauth
l33t
l33t


Joined: 19 Sep 2018
Posts: 651
Location: Ásgarðr

PostPosted: Fri Apr 02, 2021 12:12 pm    Post subject: Reply with quote

https://github.com/WayneD/rsync/issues/166
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254354

There is a patch floating around that seems to fix that. (Unless really needed, I would wait for something official though..)
https://github.com/Homebrew/formula-patches/blob/master/rsync/patch-crtimes.diff
Back to top
View user's profile Send private message
Kellerkalt
n00b
n00b


Joined: 22 Dec 2020
Posts: 47

PostPosted: Fri Apr 02, 2021 12:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
sdauth
l33t
l33t


Joined: 19 Sep 2018
Posts: 651
Location: Ásgarðr

PostPosted: Fri Apr 02, 2021 12:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
midnite
Guru
Guru


Joined: 09 Apr 2006
Posts: 449
Location: Hong Kong

PostPosted: Sun Jan 09, 2022 4:45 pm    Post subject: Reply with quote

The patch was in 2015. Will there be any fix on Gentoo's rsync soon?
_________________
- midnite.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22657

PostPosted: Sun Jan 09, 2022 6:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
midnite
Guru
Guru


Joined: 09 Apr 2006
Posts: 449
Location: Hong Kong

PostPosted: Sun Jan 09, 2022 6:15 pm    Post subject: Reply with quote

Yes. With the latest Gentoo. The same error still exists.

Code:
rsync: This rsync does not support --crtimes (-N)

_________________
- midnite.
Back to top
View user's profile Send private message
zmedico
Developer
Developer


Joined: 02 Jan 2004
Posts: 353
Location: California USA

PostPosted: Fri Jun 21, 2024 3:25 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum