Skip to main content

DatabaseBackup

Trait DatabaseBackup 

Source
pub trait DatabaseBackup {
    // Required method
    fn backup_to(&self, dir: &Path) -> Result<()>;
}
Expand description

Creates a RocksDB backup of the underlying database into a directory.

Required Methods§

Source

fn backup_to(&self, dir: &Path) -> Result<()>

Writes a RocksDB backup snapshot into dir.

Implementors§

Source§

impl DatabaseBackup for RocksDbDatabaseInternal

Available on with_testing only.
Source§

impl<D: DatabaseBackup> DatabaseBackup for LruCachingDatabase<D>

Available on with_testing only.
Source§

impl<D: DatabaseBackup> DatabaseBackup for MeteredDatabase<D>

Available on with_testing only.
Source§

impl<D: DatabaseBackup> DatabaseBackup for ValueSplittingDatabase<D>

Available on with_testing only.