Implement backups

* trigger backup importation via http route
* follow backup advancement with status route
* import backup via a command line
* let user choose batch size of documents to import (command lines)

closes #884
closes #840
This commit is contained in:
many 2020-07-28 14:41:49 +02:00
parent efe5984d54
commit c254320860
No known key found for this signature in database
GPG key ID: 2CEF23B75189EACA
26 changed files with 1313 additions and 167 deletions

View file

@ -586,6 +586,8 @@ impl Database {
.main
.put_fields_distribution(writer, &frequency)
}
pub fn version(&self) -> (u32, u32, u32) { self.database_version }
}
#[cfg(test)]