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

cbrestore doesn't support --data or -d but it appears on Fun Spec on wiki

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • 2.0
    • 2.0
    • tools
    • Security Level: Public
    • None

    Description

      I create two items on a single node on build 1707.
      >>> client.set("chisheng", 0, 0, "hong")
      (1045019847, 7878031206753819, '')
      >>> client.set("chisheng1", 0, 0, "lindy")
      (3399193960, 7878043192808819, '')

      Then I backup these 2.
      [chisheng@cen-1715 bin]$ ./cbbackup http://Administrator:password@10.5.2.23:8091 ~/backup/backup1
      ################### 100.0% (2/2 msgs)
      bucket: default, msgs transferred...
      : total | last | per sec
      batch : 5 | 5 | 24.1
      byte : 9 | 9 | 43.3
      msg : 2 | 2 | 9.6
      done

      Then I try to restore the item with value "lindy"
      [chisheng@cen-1715 bin]$ ./cbrestore ~/backup/backup1 http://Administrator:password@10.5.2.23:8091 --data lindy
      Usage: cbrestore [options] backup_dir destination

      Restores a single couchbase bucket.

      Please first create the destination / bucket before restoring.

      Examples:
      cbrestore /backups/backup-42 http://HOST:8091 \
      --bucket-source=default
      cbrestore /backups/backup-42 couchbase://HOST:8091 \
      --bucket-source=default
      cbrestore /backups/backup-42 memcached://HOST:11211 \
      --bucket-source=sessions --bucket-destination=sessions2

      cbrestore: error: no such option: --data

      [chisheng@cen-1715 bin]$ ./cbrestore ~/backup/backup1 http://Administrator:password@10.5.2.23:8091 -d lindy
      Usage: cbrestore [options] backup_dir destination

      Restores a single couchbase bucket.

      Please first create the destination / bucket before restoring.

      Examples:
      cbrestore /backups/backup-42 http://HOST:8091 \
      --bucket-source=default
      cbrestore /backups/backup-42 couchbase://HOST:8091 \
      --bucket-source=default
      cbrestore /backups/backup-42 memcached://HOST:11211 \
      --bucket-source=sessions --bucket-destination=sessions2

      cbrestore: error: no such option: -d

      cbrestore doesn't support "-d --data" still. So we should mark it as experiment on wiki maybe.

      Attachments

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

        Activity

          People

            dipti Dipti Borkar (Inactive)
            Chisheng Chisheng Hong (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty