On 1/21/2022 6:16 AM, Sergio García Maroto wrote:
Thanks a lot for the support here.
As Nikola described. the only way I was able to make the backup is adding
"location=s3:/"
I just did a test on Solr 8.11.2-SNAPSHOT which I compiled from
branch_8_11 on January 3rd. It's the same test I did before on an
earlier version installed from a binary download rather than source.
First, I created an access key in AWS, and I made sure that my user had
full access to S3. I created an S3 bucket named "elyograg" and in that
bucket, I created a folder called "solrbackup".
Then I added this to solr.xml:
<backup>
<repository name="s3" class="org.apache.solr.s3.S3BackupRepository"
default="false">
<str name="s3.bucket.name">elyograg</str>
<str name="s3.region">us-west-1</str>
</repository>
</backup>
I copied all the required jars to $SOLR_HOME/lib and added the AWS
access key info to SOLR_OPTS in /etc/default/solr.in.sh.
Then I restarted Solr and accessed this URL:
http://localhost:8983/solr/dovecot/replication?command=backup&repository=s3&location=solrbackup&name=dovecot
It worked, and I saw files and directories in the solrbackup folder when
I looked into the bucket on the S3 web page.
Thanks,
Shawn