I am using rsync with --info=skip0 --no-links, but the output is still filled with skipping non-regular file messages.
This seems like a conflict to what --info=help reports:
Use OPT or OPT1 for level 1 output, OPT2 for level 2, etc.; OPT0 silences.
and
SKIP Mention files that are skipped due to options used.
Even if this is the desired result, I would still prefer to not have such messages in the output (in the log file its fine), as my SRC contains a lot of symbolic links.
I found a question on unix.stackexchange.com for my exact problem, but the solutions either do not work or are very unpractical for my usecase.
I also found two patches for similar issues, which were probably never applied:
- mute all
skip non-regular file messages with --info=skip0
- only print
skip non-regular file messages when verbose > 1
If none of the patches result in desired behaviour, I would like to suggest to add another --info option (or another rsync option) to silence all skip non-regular file messages, which could also resolve or aid #111 .
With either solution, I would also suggest to update the output of --info=help accordingly, as currently there is no mention of skip non-regular file messages not being muted by --info=skip0.
And yes, I am aware of --quiet, but I would like to still be able to have output.
Full command that is used:
sudo rsync -aAXN --fileflags --open-noatime --fake-super --info=skip0,progress2,stats3 --no-links --log-file=FILE --link-dest=DIR SRC DEST 2>&1 | tee FILE
I use 2>&1 | tee FILE because the command is constructed and executed by a python script, but I still want to see the regular output (the issue persists with executing rsync manually).
System:
macOS 10.15.7
rsync installation:
Installed using brew
Output of rsync --version:
rsync version 3.2.3 protocol version 31
Copyright (C) 1996-2020 by Andrew Tridgell, Wayne Davison, and others.
Web site: https://rsync.samba.org/
Capabilities:
64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints,
socketpairs, hardlinks, hardlink-specials, symlinks, IPv6, no atimes,
batchfiles, inplace, append, ACLs, xattrs, optional protect-args, iconv,
symtimes, no prealloc, stop-at, crtimes, file-flags
Optimizations:
SIMD, asm, openssl-crypto
Checksum list:
xxh128 xxh3 xxh64 (xxhash) md5 md4 none
Compress list:
zstd lz4 zlibx zlib none
rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you
are welcome to redistribute it under certain conditions. See the GNU
General Public Licence for details.
I am using rsync with
--info=skip0 --no-links, but the output is still filled withskipping non-regular filemessages.This seems like a conflict to what
--info=helpreports:Use OPT or OPT1 for level 1 output, OPT2 for level 2, etc.; OPT0 silences.and
SKIP Mention files that are skipped due to options used.Even if this is the desired result, I would still prefer to not have such messages in the output (in the log file its fine), as my
SRCcontains a lot of symbolic links.I found a question on unix.stackexchange.com for my exact problem, but the solutions either do not work or are very unpractical for my usecase.
I also found two patches for similar issues, which were probably never applied:
skip non-regular filemessages with--info=skip0skip non-regular filemessages whenverbose > 1If none of the patches result in desired behaviour, I would like to suggest to add another
--infooption (or anotherrsyncoption) to silence allskip non-regular filemessages, which could also resolve or aid #111 .With either solution, I would also suggest to update the output of
--info=helpaccordingly, as currently there is no mention ofskip non-regular filemessages not being muted by--info=skip0.And yes, I am aware of
--quiet, but I would like to still be able to have output.Full command that is used:
sudo rsync -aAXN --fileflags --open-noatime --fake-super --info=skip0,progress2,stats3 --no-links --log-file=FILE --link-dest=DIR SRC DEST 2>&1 | tee FILEI use
2>&1 | tee FILEbecause the command is constructed and executed by a python script, but I still want to see the regular output (the issue persists with executingrsyncmanually).System:
macOS 10.15.7
rsyncinstallation:Installed using
brewOutput of
rsync --version: