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

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

          Activity

            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.

            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

            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 ~]#

            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