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

Allow cbbackupmgr to create bucket(s) on restore.

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.6.2, 4.6.3
    • 6.5.0
    • tools
    • All supported platforms for 4.5, 4.6, 5.0

    Description

      There seems to be a requirement for the cbbackupmgr tool to be able to

      create a Bucket at the destination cluster/node during the restore path.

      This will make it easier for customers during the restore process.

       

      Attachments

        Issue Links

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

          Activity

            rohinton.kazak Rohinton Kazak (Inactive) created issue -

            We did this on purpose for two reasons.

            1) We did not want to backup bucket password
            2) Restoring to a cluster that is not the same size may fail due to the server not having enough memory

            Since the first issue is no longer a problem in 5.0 because we have RBAC I'm open to considering this, but I wouldn't want to make it the default behavior.

            mikew Mike Wiederhold [X] (Inactive) added a comment - We did this on purpose for two reasons. 1) We did not want to backup bucket password 2) Restoring to a cluster that is not the same size may fail due to the server not having enough memory Since the first issue is no longer a problem in 5.0 because we have RBAC I'm open to considering this, but I wouldn't want to make it the default behavior.
            mikew Mike Wiederhold [X] (Inactive) made changes -
            Field Original Value New Value
            Fix Version/s feature-backlog [ 10342 ]
            rohinton.kazak Rohinton Kazak (Inactive) made changes -
            Link This issue blocks CBSE-4512 [ CBSE-4512 ]
            James Flather James Flather made changes -
            Link This issue blocks CBSE-4513 [ CBSE-4513 ]
            James Flather James Flather made changes -
            Summary Feature request, allow cbbackupmgr to create bucket(s) on restore. Allow cbbackupmgr to create bucket(s) on restore.
            mikew Mike Wiederhold [X] (Inactive) made changes -
            Fix Version/s Spock.Next [ 13624 ]
            Fix Version/s feature-backlog [ 10342 ]
            mikew Mike Wiederhold [X] (Inactive) made changes -
            Assignee Mike Wiederhold [ mikew ] Patrick Varley [ pvarley ]
            lynn.straus Lynn Straus made changes -
            Fix Version/s vulcan [ 14610 ]
            mikew Mike Wiederhold [X] (Inactive) made changes -
            Fix Version/s Mad-Hatter [ 15037 ]
            Fix Version/s Spock.Next [ 13624 ]
            Fix Version/s vulcan [ 14610 ]
            pvarley Patrick Varley made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            pvarley Patrick Varley made changes -
            Status In Progress [ 3 ] Open [ 1 ]
            pvarley Patrick Varley made changes -
            Component/s tools [ 10223 ]
            Component/s backup [ 12517 ]
            pvarley Patrick Varley made changes -
            Assignee Patrick Varley [ pvarley ] Carlos Gonzalez Betancort [ carlos.gonzalez ]
            carlos.gonzalez Carlos Gonzalez Betancort (Inactive) made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            carlos.gonzalez Carlos Gonzalez Betancort (Inactive) made changes -
            Actual Start 2018-11-09 07:56 (issue has been started)
            pvarley Patrick Varley made changes -
            Link This issue blocks CBSE-6042 [ CBSE-6042 ]
            pvarley Patrick Varley made changes -
            Link This issue blocks CBSE-6042 [ CBSE-6042 ]

            Build couchbase-server-6.5.0-1607 contains backup commit e7eae0d with commit message:
            MB-26916 Allow restore to create missing buckets

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1607 contains backup commit e7eae0d with commit message: MB-26916 Allow restore to create missing buckets
            carlos.gonzalez Carlos Gonzalez Betancort (Inactive) made changes -
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Resolved [ 5 ]
            carlos.gonzalez Carlos Gonzalez Betancort (Inactive) made changes -
            Actual End 2018-11-12 07:43 (issue has been resolved)
            James Flather James Flather made changes -
            Link This issue blocks CBSE-6401 [ CBSE-6401 ]

            What is the current default behavior? Is it a flag to be set? Are instructions documented anywhere?

            chaitra.ramarao Chaitra Ramarao (Inactive) added a comment - What is the current default behavior? Is it a flag to be set? Are instructions documented anywhere?

            By default cbbackupmgr restore won't create the buckets on a restore. A flag --auto-create-buckets was added to the command that will create remote buckets if they do not exist. This was documented in the man page of the command.

            carlos.gonzalez Carlos Gonzalez Betancort (Inactive) added a comment - By default cbbackupmgr restore won't create the buckets on a restore. A flag --auto-create-buckets was added to the command that will create remote buckets if they do not exist. This was documented in the man page of the command.
            thuan Thuan Nguyen added a comment -

            Verified on build 6.5.0-3458 with no travel-sample in restore cluster

            [root@localhost ~]# /opt/couchbase/bin/cbbackupmgr  restore -r backup -a /tmp/backup/ -c 12.11.10.129 -u Administrator -p password --vbucket-filter 1-10 --auto-create-buckets
             
            (1/1) Restoring backup 2019-06-07T14_28_55.849194657-07_00 
            Copied all data in 8s (Avg. 28.16KB/Sec)                                                                                                                                                       305 items / 225.25KB
            travel-sample           [=================================================================================================================================================================================] 100.00%
             
            Restore completed successfully
            [root@localhost ~]# 
            
            

            thuan Thuan Nguyen added a comment - Verified on build 6.5.0-3458 with no travel-sample in restore cluster [root@localhost ~]# /opt/couchbase/bin/cbbackupmgr restore -r backup -a /tmp/backup/ -c 12.11.10.129 -u Administrator -p password --vbucket-filter 1-10 --auto-create-buckets   (1/1) Restoring backup 2019-06-07T14_28_55.849194657-07_00 Copied all data in 8s (Avg. 28.16KB/Sec) 305 items / 225.25KB travel-sample [=================================================================================================================================================================================] 100.00%   Restore completed successfully [root@localhost ~]#
            thuan Thuan Nguyen made changes -
            Sprint Status Current Sprint [ 10027 ]
            Status Resolved [ 5 ] Closed [ 6 ]
            pvarley Patrick Varley made changes -
            Link This issue relates to DOC-5501 [ DOC-5501 ]
            malarky Chris Malarky made changes -
            Link This issue blocks CBSE-7729 [ CBSE-7729 ]

            People

              carlos.gonzalez Carlos Gonzalez Betancort (Inactive)
              rohinton.kazak Rohinton Kazak (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty