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

cbbackupmgr progress bar issue with cronjobs

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • feature-backlog
    • 6.5.1
    • tools
    • None
    • 1

    Description

      When a bash script running just the `cbbackupmgr backup` command is run on the terminal, we get the progress bar as shown below:

      Script started on 2020-08-11 20:25:07+0000
       
      Backing up to 2020-08-11T20_25_07.576464767Z
      Copied all data in 1s (Avg. 14.00KB/Sec) 0 items / 14.00KB
      default [======================================================================================] 100.00%
       
      Backup successfully completed
      

      However, the progress bar gets disabled when the script is run as a CRON job. Thus the standard out of the cronjob to file results in the following output.

      Script started on 2020-08-11 20:28:02+0000
      Warning: Progress bar disabled because terminal width is less than 80 characters
      Backup successfully completed
      

      During the cron execution, if due to the sizing of the cluster the backup takes a long time to complete, it would be beneficial to track the progress of the backup with some sort of percentage indication.

      Attachments

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

        Activity

          People

            pvarley Patrick Varley (Inactive)
            yuvraj.kanwar Yuvraj Kanwar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty