mirror of
https://github.com/girlbossceo/conduwuit.git
synced 2025-12-17 20:58:58 -05:00
add database backup with admin commands
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
e5f00926d7
commit
b9d7185290
8 changed files with 144 additions and 2 deletions
|
|
@ -272,4 +272,12 @@ lasttimelinecount_cache: {lasttimelinecount_cache}\n"
|
|||
self.global.insert(b"version", &new_version.to_be_bytes())?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn backup(&self) -> Result<(), Box<dyn std::error::Error>> {
|
||||
self.db.backup()
|
||||
}
|
||||
|
||||
fn backup_list(&self) -> Result<String> {
|
||||
self.db.backup_list()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue