sync

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartRsync

func StartRsync(done <-chan struct{}, host string, port int, syncs []Sync, interval time.Duration)

StartRsync path to target rsync server on given interval

Types

type Sync added in v0.2.4

type Sync struct {
	Source      string `yaml:"source"`
	Destination string `yaml:"destination"`
}

Sync configurations

func MustParseAll added in v0.2.4

func MustParseAll(strings []string) (result []Sync)

MustParseAll parse sync string or fail with Fatal

func Parse added in v0.2.4

func Parse(str string) (Sync, error)

Parse parses a sync string in the form "~/local/dir:/data"

Jump to

Keyboard shortcuts

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