Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: V2 List Backup Example

...

  1. name - A string name of the backup (usually the collection name)
  2. location - A string location of the backup. This is resolved against the repository.
  3. repository - An optional string to identify the repository. If none is provided, then the default repository configured in solr.xml is used.
Code Block
titleV1 List Backups API
/admin/collections?action=LISTBACKUP&
  name=myBackupName&
  location=/path/to/my/shared/drive


Code Block
titleV2 List Backups API
POST /v2/cluster/backups 
{
  "list-backups": {
    "name": "myBackupName",
    "location": "/path/to/my/shared/drive" 
  } 
} 

Example response:

Code Block
{
  "responseHeader":{
    "status":0,
    "QTime":1},
  "collection":"backuprestore_testbackupinc",
  "backups":[
    {
      "indexFileCount":26,
      "indexSizeMB":0.004,
      "shardBackupIds":{
        "shard2":"md_shard2_id_2",
        "shard1":"md_shard1_id_2"},
      "collection.configName":"conf1",
      "backupId":2,
      "collectionAlias":"backuprestore_testbackupinc",
      "startTime":"2019-08-28T16:02:11.485Z",
      "indexVersion":"8.2.1"},
    {
      "indexFileCount":2,
      "indexSizeMB":0.0,
      "shardBackupIds":{
        "shard2":"md_shard2_id_3",
        "shard1":"md_shard1_id_3"},
      "collection.configName":"conf1",
      "backupId":3,
      "collectionAlias":"backuprestore_testbackupinc",
      "startTime":"2019-08-28T16:02:14.375Z",
      "indexVersion":"8.2.1"},
    {
      "indexFileCount":2,
      "indexSizeMB":0.0,
      "shardBackupIds":{
        "shard2":"md_shard2_id_4",
        "shard1":"md_shard1_id_4"},
      "collection.configName":"conf1",
      "backupId":4,
      "collectionAlias":"backuprestore_testbackupinc",
      "startTime":"2019-08-28T16:02:14.406Z",
      "indexVersion":"8.2.1"}]}

...