I'm wondering what the recommended way is to backup a repository of elasticsearch? I want to push a snapshot to B2 Storage. Would it be acceptable to tar the whole thing and upload it and then delete any snapshots I have in there to keep the backup size down? (Thus just having a record of snapshots in the backup)
I've been using elasticdump right now.
You need to treat entire repository as a whole, because many files are shared between different snapshots. If you want to move the repository somewhere else, you would need to move all files in this repository.
Thanks Igor. Are snapshots full recreations or incremental from the previous snapshot?
Ideally I'd want to keep the storage size down on the server running ES. If the whole repository has to be backed up then what snapshots would be safe to delete overtime?
Both. We only copy files that changed since the last snapshot, but each snapshot refers to all files. See docs for more details.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.