Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-21764

cbbackupmgr should print details on backup completion.

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 5.5.0
    • 4.5.0
    • tools
    • None
    • CBSS Sprint Dec-08-2017

    Description

      Currently cbbackupmgr outputs the following when run manually:

       
      Backing up to 2016-11-22T14_44_26.47324958Z
      Copied all data in 3.01s (Avg. 73.11MB/Sec)                                                                                                                                           15916 items / 219.34MB
      default                 [==========================================================================================================================================================================] 100.00%
      secure_bucket           [==========================================================================================================================================================================] 100.00%
      sync_gateway            [==========================================================================================================================================================================] 100.00%
       
      Backup successfully completed
      

      However, when running in a small terminal window or redirecting, we correctly don't try to render the progress bars:

      Warning: Progess bar disabled because terminal width is less than 80 characters
      Backup successfully completed
      

      The trouble here is that many users will want to script their backups and not run them manually. The --no-progess-bar option is obviously the one to use here, but that just prints:

      Backup successfully completed
      

      with no further output. It would be helpful to have the output include the other info that comes with the progress bar, so that the output is more useful if redirected to a log, something like:

      Backing up to 2016-11-22T14_44_26.47324958Z
      Copied all data in 3.01s (Avg. 73.11MB/Sec)                                                                                                                                           15916 items / 219.34MB
      Backup successfully completed
      

      This info is discernible from `cbbackupmgr list` and the `backup.log` but both require additional steps and parsing.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              thuan Thuan Nguyen
              James Flather James Flather (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty