[sanesecurity] rsync stats despite rsync_silence="yes"

  • From: Henrik Rasmussen <her@xxxxxxxxx>
  • To: "sanesecurity@xxxxxxxxxxxxx" <sanesecurity@xxxxxxxxxxxxx>
  • Date: Mon, 2 May 2016 07:15:45 +0000

newbie question:

To avoid the statistical message below, I set the rsync_silence="yes" as the 
comment explains '# Default is "no" to report rsync statistics'. I still get 
the stats though.

However, according to the script clamav-unofficial-sigs.sh, the rsync command 
does not respect that, as it explicitly asks for statistics using the option 
"--stats":

   rsync $rsync_output_level $no_motd --files-from=$sanesecurity_include_dbs 
-ctuz $connect_timeout --timeout="$rsync_max_time" --stats 
rsync://$sanesecurity_mirror_ip/sanesecurity $sanesecurity_dir

The comment says '# Default is "no" to report rsync statistics', but setting 
rsync_silence="yes" will only set rsync_output_level="-q" and thus result in 
"rsync -q", and according to the rsync man page, the -q option is to "suppress 
non-error messages", NOT statistical output.

* In other words, setting rsync_silence="yes" will only suppress non-error 
messages.

Isn't it a contradiction to comment "# Default is no to report rsync 
statistics", but explicitly ask for stats using --stats?

-----Original message-----
From: Cron Daemon [root@xxxxxxxxxxxxxxxxxxxxxxx] 
Sent: 2. maj 2016 01:48
To: root@xxxxxxxxxxxxxxxxxxxxxxx
Subject: Cron < root@xxxxxxxxxxxxxxxxxxxxxxx> /bin/bash 
/usr/local/bin/clamav-unofficial-sigs.sh > /dev/null

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0  
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0  0 
    0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0  
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0


Henrik Rasmussen

Other related posts: