Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidRsyncSourcePath = errors.New("multiple remote source path passed")
ErrInvalidRsyncSourcePath is returned when there are multiple source path used to rsync from a remote source host
View Source
var Excludes = []string{
"pg_hba.conf", "postmaster.opts", "postgresql.auto.conf", "internal.auto.conf",
"gp_dbid", "postgresql.conf", "backup_label.old", "postmaster.pid", "recovery.conf",
}
View Source
var Options = []string{"--archive", "--compress", "--stats"}
Functions ¶
func ResetRsyncCommand ¶
func ResetRsyncCommand()
func Rsync ¶
Rsync executes "rsync" on the system with the given options. The caller needs to consider adding "/" using os.PathSeparator to the source directory to control where in the destination directory the files go.
Any errors returned are of type RsyncError, which wraps the underlying error from "rsync" if called.
func SetRsyncCommand ¶
XXX: for internal testing only
Types ¶
type Option ¶
type Option func(*optionList)
func WithDestination ¶
func WithDestinationHost ¶
func WithExcludedFiles ¶
func WithOptions ¶
func WithSourceHost ¶
func WithSources ¶
func WithStream ¶
func WithStream(stream step.OutStreams) Option
type RsyncError ¶
type RsyncError struct {
// contains filtered or unexported fields
}
func (RsyncError) Error ¶
func (e RsyncError) Error() string
func (RsyncError) Unwrap ¶
func (e RsyncError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.