Penguincoder, (edited )

Your request goes against the unix philosophy. Grep does one thing and does it well. If you desire additional functionality, you should add another utility to accomplish what you want.

rsync -naP --exclude-from=rsync-homedir-local.txt /home/$USER/ $BACKUPDIR/ | grep denied

In your specific task, utilize bashims to do (what I think) you want:

rsync -naP --exclude-from=rsync-homedir-local.txt /home/$USER/ $BACKUPDIR/ || echo “task failed”

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • 200 @ entry_comment_voters
    HTTP status 200 OK
    Route name entry_comment_voters
    Has session yes
    Stateless Check no
    Time 226 ms
    Total time 226 ms
    Initialization time 69 ms
    Memory 16.0 MiB
    Peak memory usage 16.0 MiB
    PHP memory limit 128 MiB
    Logger 86
    Errors 0
    Warnings 0
    Deprecations 86
    Cache 24 in 3.66 ms
    Cache Calls 24
    Total time 3.66 ms
    Cache hits 32 / 37 (86.49%)
    Cache writes 1
    3
    Default locale en
    Missing messages 3
    Fallback messages 0
    Defined messages 119
    Security n/a
    Authenticated No
    Firewall name main
    Twig 67 ms
    Render Time 67 ms
    Template Calls 65
    Block Calls 16
    Macro Calls 6
    41 in 36 ms
    settings_row_switch 15
    user_settings_row_switch 4
    date 3
    user_inline 2
    settings_row_enum 2
    entry_comment 1
    date_edited 1
    user_avatar 1
    vote 1
    boost 1
    user_actions 1
    magazine_box 1
    magazine_sub 1
    related_magazines 1
    active_users 1
    related_categories 1
    related_posts 1
    related_entries 1
    support_us_block 1
    featured_magazines 1
    8 in 16.60 ms
    Database Queries 8
    Different statements 8
    Query time 16.60 ms
    Invalid entities 0
    Cache hits 24
    Cache misses 1
    Cache puts 1
    6.4.0
    Profiler token 7e4d04
    Environment dev
    Debug enabled
    PHP version 8.2.26   View phpinfo()
    PHP Extensions Xdebug ✗ APCu ✓ OPcache ✓
    PHP SAPI apache2handler