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

cbrestore help in community version should not display -from-date=FROM_DATE and --to-date=TO_DATE options

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • 3.0
    • 3.0
    • tools
    • Security Level: Public
    • None
    • unix
    • Untriaged
    • Centos 64-bit
    • Unknown

    Description

      cbrestore help shows restore options -from-date=FROM_DATE and --to-date=TO_DATE

      [root@cen-2517 ~]# /opt/couchbase/bin/cbrestore -h
      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

      Options:
      -h, --help show this help message and exit
      -a, --add use add instead of set to not overwrite existing
      items in the destination
      -b BUCKET_SOURCE, --bucket-source=BUCKET_SOURCE
      single bucket from the backup_dir to restore;
      if the backup_dir only contains a single bucket,
      then that bucket will be automatically used
      -B BUCKET_DESTINATION, --bucket-destination=BUCKET_DESTINATION
      when --bucket-source is specified, overrides the
      destination bucket name; this allows you to restore
      to a different bucket; defaults to the same as the
      bucket-source
      --from-date=FROM_DATE
      restore data from the date specified. By default
      all data from the very beginning will be restored
      --to-date=TO_DATE restore data till the date specified. By default
      all data that are collected will be restored
      -i ID, --id=ID Transfer only items that match a vbucketID
      -k KEY, --key=KEY Transfer only items with keys that match a regexp
      -n, --dry-run No actual transfer; just validate parameters, files,
      connectivity and configurations
      -u USERNAME, --username=USERNAME
      REST username for source cluster or server node
      -p PASSWORD, --password=PASSWORD
      REST password for source cluster or server node
      -t THREADS, --threads=THREADS
      Number of concurrent workers threads performing the
      transfer
      -v, --verbose verbose logging; more -v's provide more verbosity
      -x EXTRA, --extra=EXTRA
      Provide extra, uncommon config parameters;
      comma-separated key=val(,key=val)* pairs

      Available extra config parameters (-x):
      batch_max_bytes=400000 (Transfer this # of bytes per batch);
      batch_max_size=1000 (Transfer this # of documents per batch);
      cbb_max_mb=100000 (Split backup file on destination cluster if it
      exceeds MB); conflict_resolve=1 (By default, disable conflict
      resolution.); data_only=0 (For value 1, only transfer data from a
      backup file or cluster); design_doc_only=0 (For value 1, transfer
      design documents only from a backup file or cluster.); max_retry=10
      (Max number of sequential retries if transfer fails); mcd_compatible=1
      (For value 0, display extended fields for stdout output.); nmv_retry=1
      (0 or 1, where 1 retries transfer after a NOT_MY_VBUCKET message);
      recv_min_bytes=4096 (Amount of bytes for every TCP/IP call
      transferred); rehash=0 (For value 1, transfer data from Mac OSX
      platform); report=5 (Number batches transferred before updating
      progress bar in console); report_full=2000 (Number batches transferred
      before emitting progress information in console); seqno=0 (By default,
      start seqno from beginning.); try_xwm=1 (Transfer documents with
      metadata. 0 should only be used if you transfer from 1.8.x to 1.8.x)

      Attachments

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

        Activity

          People

            bcui Bin Cui (Inactive)
            thuan Thuan Nguyen
            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