Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagetext
titleV1 Backup request
/admin/collections?action=BACKUP&
  name=myBackupName&
  collection=myCollectionName&
  location=/path/to/my/shared/drive&
  maxNumBackup=5


Code Block
languagetext
titleV2 Backup request
POST /v2/collections

{
  "backup-collection": {
    "collection": "myCollectionName",
    "name": "myBackupName",
    "location": "/path/to/my/shared/drive",
    "maxNumBackup": 5
  }
}

Example backup response:

Code Block
languagejs
titleBackup response
linenumberstrue
{
  "responseHeader":{
    "status":0,
    "QTime":61},
  "success":{
    "127.0.0.1:60324_solr":{"responseHeader":{
        "status":0,
        "QTime":31}},
    "127.0.0.1:60323_solr":{"responseHeader":{
        "status":0,
        "QTime":31}}},
  "collection":"myCollectionName",
  "numShards": 2,
  "backupId":0,
  "indexVersion":"8_4",
  "startTime":"2019-08-28T16:03:19.127Z",
  "indexSizeMB":0.004,
  "shards":{
    "shard2":{
      "startTime":"2
019-08-28T16:03:19.127Z",
      "indexFileCount":17,
      "uploadedIndexFileCount":17,
      "indexSizeMB":0.003,
      "uploadedIndexFileMB":0.003,
      "endTime":"2019-08-28T16:03:19.155Z",
      "shardBackupId":"md_shard2_id_0",
      "node":"127.0.0.1:60324_solr"},
    "shard1":{
      "startTime":"2019-08-28T16:03:19.127Z",
      "indexFileCount":17,
      "uploadedIndexFileCount":17,
      "indexSizeMB":0.003,
      "uploadedIndexFileMB":0.003,
      "endTime":"2019-08-28T16:03:19.155Z",
      "shardBackupId":"md_shard1_id_0",
      "node":"127.0.0.1:60323_solr"}}}

...

Code Block
languagetext
titleV1 Restore request
/admin/collections?action=RESTORE&
  name=myBackupName&
  location=/path/to/my/shared/drive&
  collection=myRestoredCollectionName&
  backupId=10

...