pub struct PgBaseBackupBuilder { /* private fields */ }Expand description
pg_basebackup takes a base backup of a running PostgreSQL server.
Implementations§
Source§impl PgBaseBackupBuilder
impl PgBaseBackupBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new PgBaseBackupBuilder
Sourcepub fn from(settings: &dyn Settings) -> Self
pub fn from(settings: &dyn Settings) -> Self
Create a new PgBaseBackupBuilder from Settings
Sourcepub fn program_dir<P: Into<PathBuf>>(self, path: P) -> Self
pub fn program_dir<P: Into<PathBuf>>(self, path: P) -> Self
Location of the program binary
Sourcepub fn max_rate<S: AsRef<OsStr>>(self, max_rate: S) -> Self
pub fn max_rate<S: AsRef<OsStr>>(self, max_rate: S) -> Self
maximum transfer rate to transfer data directory (in kB/s, or use suffix “k” or “M”)
Sourcepub fn write_recovery_conf(self) -> Self
pub fn write_recovery_conf(self) -> Self
write configuration for replication
Sourcepub fn tablespace_mapping<S: AsRef<OsStr>>(self, tablespace_mapping: S) -> Self
pub fn tablespace_mapping<S: AsRef<OsStr>>(self, tablespace_mapping: S) -> Self
relocate tablespace in OLDDIR to NEWDIR
Sourcepub fn waldir<S: AsRef<OsStr>>(self, waldir: S) -> Self
pub fn waldir<S: AsRef<OsStr>>(self, waldir: S) -> Self
location for the write-ahead log directory
Sourcepub fn wal_method<S: AsRef<OsStr>>(self, wal_method: S) -> Self
pub fn wal_method<S: AsRef<OsStr>>(self, wal_method: S) -> Self
include required WAL files with specified method
Sourcepub fn compress<S: AsRef<OsStr>>(self, compress: S) -> Self
pub fn compress<S: AsRef<OsStr>>(self, compress: S) -> Self
compress on client or server as specified
Sourcepub fn checkpoint<S: AsRef<OsStr>>(self, checkpoint: S) -> Self
pub fn checkpoint<S: AsRef<OsStr>>(self, checkpoint: S) -> Self
set fast or spread checkpointing
Sourcepub fn create_slot(self) -> Self
pub fn create_slot(self) -> Self
create replication slot
Sourcepub fn manifest_checksums<S: AsRef<OsStr>>(self, manifest_checksums: S) -> Self
pub fn manifest_checksums<S: AsRef<OsStr>>(self, manifest_checksums: S) -> Self
use algorithm for manifest checksums
Sourcepub fn manifest_force_encode(self) -> Self
pub fn manifest_force_encode(self) -> Self
hex encode all file names in manifest
Sourcepub fn no_estimate_size(self) -> Self
pub fn no_estimate_size(self) -> Self
do not estimate backup size in server side
Sourcepub fn no_manifest(self) -> Self
pub fn no_manifest(self) -> Self
suppress generation of backup manifest
Sourcepub fn no_verify_checksums(self) -> Self
pub fn no_verify_checksums(self) -> Self
do not verify checksums
Sourcepub fn status_interval<S: AsRef<OsStr>>(self, status_interval: S) -> Self
pub fn status_interval<S: AsRef<OsStr>>(self, status_interval: S) -> Self
time between status packets sent to server (in seconds)
Sourcepub fn no_password(self) -> Self
pub fn no_password(self) -> Self
never prompt for password
Sourcepub fn pg_password<S: AsRef<OsStr>>(self, pg_password: S) -> Self
pub fn pg_password<S: AsRef<OsStr>>(self, pg_password: S) -> Self
user password
Trait Implementations§
Source§impl Clone for PgBaseBackupBuilder
impl Clone for PgBaseBackupBuilder
Source§fn clone(&self) -> PgBaseBackupBuilder
fn clone(&self) -> PgBaseBackupBuilder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl CommandBuilder for PgBaseBackupBuilder
impl CommandBuilder for PgBaseBackupBuilder
Source§fn get_program(&self) -> &'static OsStr
fn get_program(&self) -> &'static OsStr
Get the program name
Source§fn get_program_dir(&self) -> &Option<PathBuf>
fn get_program_dir(&self) -> &Option<PathBuf>
Location of the program binary
Source§fn env<S: AsRef<OsStr>>(self, key: S, value: S) -> Self
fn env<S: AsRef<OsStr>>(self, key: S, value: S) -> Self
Set an environment variable for the command