Reputation:
I wonder how to backup (dump) a Solr database?
If it is only to copy some files, then please specify which files (filename, location etc).
Thanks
Upvotes: 10
Views: 5549
Reputation: 1426
In Solr 8/9 version solr backup and restore is available via its replication handler.
It will create a snapshot of the data which you can also restore later.
Here in the solr documentation page you can find more useful information:
https://solr.apache.org/guide/8_9/making-and-restoring-backups.html#standalone-mode-backups
So this can be used with new 8/9 version if someone is looking for it.
Upvotes: 0
Reputation: 1751
Typically, the index is stored in $SOLR_HOME/data
.
Back up that entire folder.
Upvotes: 6
Reputation: 6928
We use Solr Replication to do our backup.
You can either have a slave that is dedicated to be a backup or use the "backup" command to make a backup on the master (I never used that last method).
Upvotes: 12