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

cbbackupmgr restore: support cross bucket mapping of scopes and collections

    XMLWordPrintable

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 7.0.0, 7.1.0, 7.0.3, 7.0.2, 7.0.1, 7.1.1, 7.0.4, 7.1.2
    • None
    • tools
    • None
    • 1

    Description

      Krishna Doddi (Prasad) was trying to see if he would be able to restore a self-managed backup to a serverless database scope and realized that the cbbackupmgr restore --map-data option does not allow you to map scopes and collections to a different bucket.

      cbbackupmgr restore --archive /home/couchbase/backups --repo couchmusic --cluster couchbases://cb.prasad-m1va8c.sdk.dev.nonprod-project-avengers.com --username N1nwmWmxxxxxxxxxxxxxxxxxxxxxxxx --password poaO5ZuWhOrOxxxxxxxxxxxxxxxxxxxxx --map-data couchmusic2.music.countries=prasad-m1va8c.couchmusic2.countries --no-ssl-verify
      Error restoring cluster: invalid mapping 'couchmusic2.music.countries=prasad-m1va8c.couchmusic2.countries', scopes/collections can only be mapped inside the same bucket
      

      Since the serverless database has a single bucket with a generated name that cannot be modified, the only option allowed for cbbackupmgr restore --map-data is to map at the bucket level, but if you want to just restore to a scope in the serverless database, you cannot do that.

      Consider allowing restoring a scope or a collection to a different bucket.

      Attachments

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

        Activity

          There are no comments yet on this issue.

          People

            owend Daniel Owen
            hyun-ju.vega Hyun-Ju Vega
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty