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 · 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
source§fn get_program_file(&self) -> PathBuf
fn get_program_file(&self) -> PathBuf
source§impl Debug for PgBaseBackupBuilder
impl Debug for PgBaseBackupBuilder
source§impl Default for PgBaseBackupBuilder
impl Default for PgBaseBackupBuilder
source§fn default() -> PgBaseBackupBuilder
fn default() -> PgBaseBackupBuilder
Auto Trait Implementations§
impl Freeze for PgBaseBackupBuilder
impl RefUnwindSafe for PgBaseBackupBuilder
impl Send for PgBaseBackupBuilder
impl Sync for PgBaseBackupBuilder
impl Unpin for PgBaseBackupBuilder
impl UnwindSafe for PgBaseBackupBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)