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

cbbackupmgr collect-logs - ZIP archive improvements

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Critical
    • 6.5.0
    • 5.1.1, 5.5.0
    • tools

    Description

      Similar to cbcollect_info, would be useful if the ZIP archive contains a subdirectory so that it can be extracted cleanly/easily.

      Also, can we avoid using absolute paths:

      $ unzip -l collectinfo-2018-07-19t123424-cbbackupmgr.zip
      Archive:  collectinfo-2018-07-19t123424-cbbackupmgr.zip
        Length      Date    Time    Name
      ---------  ---------- -----   ----
           1185  00-00-1980 00:00   archive_list.txt
       44443321  00-00-1980 00:00   /logs/backup.log
            397  00-00-1980 00:00   /cluster/backup-meta.json
      

      These result in warnings during extraction:

      $ unzip -d collectinfo-2018-07-19t123424-cbbackupmgr collectinfo-2018-07-19t123424-cbbackupmgr.zip
      Archive:  collectinfo-2018-07-19t123424-cbbackupmgr.zip
        inflating: collectinfo-2018-07-19t123424-cbbackupmgr/archive_list.txt
      warning:  stripped absolute path spec from /logs/backup.log
        inflating: collectinfo-2018-07-19t123424-cbbackupmgr/logs/backup.log
      warning:  stripped absolute path spec from /cluster/backup-meta.json
        inflating: collectinfo-2018-07-19t123424-cbbackupmgr/cluster/backup-meta.json
      

      Attachments

        Issue Links

          For Gerrit Dashboard: MB-30579
          # Subject Branch Project Status CR V

          Activity

            People

              thuan Thuan Nguyen
              malarky Chris Malarky
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty