apache / solr-operator

Official Kubernetes operator for Apache Solr
https://solr.apache.org/operator
Apache License 2.0
243 stars 112 forks source link

solrbackup s3- Incremental backup URI [s3:/solr-backup/] expected to hold a single directory. Number found: 0 #589

Closed anilkhichar closed 11 months ago

anilkhichar commented 11 months ago

Solrbckup is successful but can't list/restore from the backed up data in S3.

anilkhichar commented 11 months ago

Finally, I resolved it by adding collection name as suffix. Same is working with RESTORE as well Now the "name" => SolrBackup.metadata.name + '-' + SolrBackup.spec.collection

curl -X POST http://localhost:8983/v2/collections/backups -H 'Content-Type: application/json' -d '
  {
    "list-backups" : {
      "name": "solr-backup-mycollection",
      "repository": "solr-backup-repo",
      "location": "/"
    }
  }
'