rsync

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug bool

Debug controls additional debugging in rsync output.

View Source
var RunWrapper func(cmd *exec.Cmd, source string, destination string) (func(), error)

RunWrapper is an optional function that's used to wrap rsync, useful for confinement like AppArmor.

Functions

func AtLeast

func AtLeast(min string) bool

AtLeast compares the local version to a minimum version.

func LocalCopy

func LocalCopy(source string, dest string, bwlimit string, xattrs bool, rsyncArgs ...string) (string, error)

LocalCopy copies a directory using rsync (with the --devices option).

func Recv

func Recv(path string, conn io.ReadWriteCloser, tracker *ioprogress.ProgressTracker, features []string) error

Recv sets up the receiving half of the websocket to rsync (the other half set up by rsync.Send), putting the contents in the directory specified by path.

func Send

func Send(name string, path string, conn io.ReadWriteCloser, tracker *ioprogress.ProgressTracker, features []string, bwlimit string, execPath string, rsyncArgs ...string) error

Send sets up the sending half of an rsync, to recursively send the directory pointed to by path over the websocket.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL