syncr

package module
v0.0.0-...-abb4b28 Latest Latest
Warning

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

Go to latest
Published: May 10, 2015 License: MIT Imports: 8 Imported by: 0

README

syncr

hack to run keep dotfiles in sync on multiple hosts (single master)

warning: runs rsync with the --delete option!

installation

go get github.com/chlunde/syncr/cmd/syncr

usage

Create a syncr.yaml:

-
  source: ~/.vim/
  destination: ~/.vim
  hosts:
      - login.foo.net
      - other.com
-
  source: ~/dotfiles/
  destination: ~/dotfiles
  hosts:
      - login.foo.net
      - other.com

TODO

  1. add support for rsync options (exclude etc.)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Syncr

type Syncr struct {
	// Protects all public fields
	Lock sync.Mutex

	Description string
	Status      [2]string

	Dead  bool
	Error error
	// contains filtered or unexported fields
}

func NewSyncr

func NewSyncr(src, dst string) (*Syncr, error)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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