Skip to content

Mute skipping non-regular file for info=skip0 or give an option to mute them outside of --quiet #248

@JhonnyTheJeccer

Description

@JhonnyTheJeccer

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:

  1. mute all skip non-regular file messages with --info=skip0
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions