Documentation ¶
Overview ¶
Package rsync provides a wrapper around the fast rsync file copying tool.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultClient = &Client{}
DefaultClient is a usable rsync client without any options enabled.
View Source
var MirrorClient = &Client{ Archive: true, Delete: true, Compress: true, }
MirrorClient is an rsync client configured to mirror files and directories.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { // Archive, if true, enables archive mode. Archive bool // Delete, if true, deletes extraneous files from destination directories. Delete bool // Compress, if true, compresses file data during the transfer. Compress bool // Verbose, if true, increases rsync's verbosity. Verbose bool // Exclude contains files to be excluded from the transfer. Exclude []string // RemoteShell specifies the remote shell to use, e.g. ssh. RemoteShell string // RemoteHost specifies the remote host to copy files to/from. RemoteHost string // Additional options. Options []string }
A Client is an rsync client. It allows you to copy files from one location to another using rsync and supports the tool's most useful command-line options.
Click to show internal directories.
Click to hide internal directories.