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

cbbackupmgr collect-logs - ZIP archive improvements

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 5.1.1, 5.5.0
    • 6.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

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

          Activity

            Patrick Varley Also, just realised that the timestamps on any files that are generated during the collect-info run are defaulting to 00-00-1980 00:00. Let me know if you want a separate issue opened.

            malarky Chris Malarky added a comment - Patrick Varley Also, just realised that the timestamps on any files that are generated during the collect-info run are defaulting to 00-00-1980 00:00 . Let me know if you want a separate issue opened.

            The timestamp issue has been made into a separate issue: MB-31584

            carlos.gonzalez Carlos Gonzalez Betancort (Inactive) added a comment - The timestamp issue has been made into a separate issue: MB-31584

            Build couchbase-server-6.5.0-1412 contains backup commit 316da77 with commit message:
            MB-30579 Reformat and improve collect-logs zip

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1412 contains backup commit 316da77 with commit message: MB-30579 Reformat and improve collect-logs zip

            automated and verified

            arunkumar Arunkumar Senthilnathan added a comment - automated and verified

            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