Skip to main contentModule backup
Source use std::path::Path; ๐ use rocksdb::backup::BackupEngine; ๐ use rocksdb::backup::BackupEngineInfo; ๐ use rocksdb::backup::BackupEngineOptions; ๐ use rocksdb::backup::RestoreOptions; ๐ use tuwunel_core::Config; ๐ use tuwunel_core::Err; ๐ use tuwunel_core::Result; ๐ use tuwunel_core::err; ๐ use tuwunel_core::error; ๐ use tuwunel_core::error; ๐ use tuwunel_core::implement; ๐ use tuwunel_core::info; ๐ use tuwunel_core::info; ๐ use tuwunel_core::itertools::Itertools; ๐ use tuwunel_core::utils::time::rfc2822_from_seconds; ๐ use tuwunel_core::warn; ๐ use super::Engine; ๐ use crate::Context; ๐ use crate::util::map_err; ๐
- backup_engine ๐
- backup_path ๐
- find_backup ๐
- Backup ID 0 selects the most recent backup.
- restore ๐
- Restore a backup over the configured database path, replacing the database
files found there. Must complete prior to opening the database.