Excessive std output with cbbackup --silent

Community Edition 6.6.0 build 7909
Running cbbackup as systemd service even with --silent I am getting thousands of system log entries of
Nov 12 18:11:08 ip-192-168-0-6 backup[28921]: [65B blob data]
Would redirecting
cbbackup ... > null
preserve logging errors?

Hello @skaryshev,

Would it be possible to share the whole output please? and the command that is being ran?

Cheers,
Patrick

It is running non-interactively as systemd service activated by a systemd timer.
backup.service loaded into systemd:

[Service]
WorkingDirectory=/srv/backupmanager
ExecStart=/srv/backupmanager/backup.sh
SyslogIdentifier=backupmanager
User=ubuntu

/srv/backupmanager/backup.sh :

#!/bin/bash
set -e
echo backup…
/opt/couchbase/bin/cbbackup http://localhost:8091 /mnt/data/backup -u username -p password --silent -x data_only=1

Whole output? Next to impossible . Kilobytes of entries in journalctl:

Nov 18 08:00:44 ip-192-168-0-6 backupmanager[23231]: backup…
Nov 18 08:01:00 ip-192-168-0-6 backupmanager[23231]: [61B blob data]
Nov 18 08:01:00 ip-192-168-0-6 backupmanager[23231]: [61B blob data]
Nov 18 08:01:00 ip-192-168-0-6 backupmanager[23231]: [61B blob data]
Nov 18 08:01:00 ip-192-168-0-6 backupmanager[23231]: [61B blob data]
Nov 18 08:01:00 ip-192-168-0-6 backupmanager[23231]: [62B blob data]
Nov 18 08:01:00 ip-192-168-0-6 backupmanager[23231]: [62B blob data]
Nov 18 08:01:00 ip-192-168-0-6 backupmanager[23231]: [62B blob data]

I think it is how progress bar indicator looks in non-interactive mode

I think it is how progress bar indicator looks in non-interactive mode

Yes indeed it’s the progress bar. Unfortunately it cannot be disable but how often it updates can be changed with -x report=0

/opt/couchbase/bin/cbbackup http://localhost:8091 /mnt/data/backup -u username -p password --silent -x data_only=1 -x report=0

This means it will update the progress once and will should reduce the amount of output you have.

With regards to disabling the progress bar all together, cbbackup is deprecated and will be replaced by cbbackupmgr for CE in Couchbase Server 7.0. cbbackupmgr does have the option of disabling it.